summaryrefslogtreecommitdiffstats
path: root/src/java/jogamp/common/util
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-06-25 06:56:44 +0200
committerSven Gothel <[email protected]>2013-06-25 06:56:44 +0200
commit6ff3fe730671b0bfed61b56e1179aaecd39f53a5 (patch)
treee7feca6dc8d75d3f194874699373fc7c353bfc75 /src/java/jogamp/common/util
parent0cce9a0eb5ab3ca25531c8fb8a9ef8be5c758487 (diff)
Fix SingletonInstanceServerSocket.kill(): Needs to mark alive=false in case of JVM shutdown!
Diffstat (limited to 'src/java/jogamp/common/util')
-rw-r--r--src/java/jogamp/common/util/locks/SingletonInstanceServerSocket.java2
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();