diff options
author | Sven Gothel <[email protected]> | 2013-06-25 06:56:44 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-06-25 06:56:44 +0200 |
commit | 6ff3fe730671b0bfed61b56e1179aaecd39f53a5 (patch) | |
tree | e7feca6dc8d75d3f194874699373fc7c353bfc75 | |
parent | 0cce9a0eb5ab3ca25531c8fb8a9ef8be5c758487 (diff) |
Fix SingletonInstanceServerSocket.kill(): Needs to mark alive=false in case of JVM shutdown!
-rw-r--r-- | src/java/jogamp/common/util/locks/SingletonInstanceServerSocket.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/jogamp/common/util/locks/SingletonInstanceServerSocket.java b/src/java/jogamp/common/util/locks/SingletonInstanceServerSocket.java index fb31ab6..c4f9564 100644 --- a/src/java/jogamp/common/util/locks/SingletonInstanceServerSocket.java +++ b/src/java/jogamp/common/util/locks/SingletonInstanceServerSocket.java @@ -171,7 +171,6 @@ public class SingletonInstanceServerSocket extends SingletonInstance { if(alive) { System.err.println(infoPrefix()+" EEE "+getName()+" - Unable to remove lock: ServerThread still alive ?"); kill(); - alive = false; } return true; } @@ -185,6 +184,7 @@ public class SingletonInstanceServerSocket extends SingletonInstance { if(alive) { System.err.println(infoPrefix()+" XXX "+getName()+" - Kill @ JVM Shutdown"); } + alive = false; if(null != serverThread) { try { serverThread.stop(); |