From 6ff3fe730671b0bfed61b56e1179aaecd39f53a5 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 25 Jun 2013 06:56:44 +0200 Subject: Fix SingletonInstanceServerSocket.kill(): Needs to mark alive=false in case of JVM shutdown! --- src/java/jogamp/common/util/locks/SingletonInstanceServerSocket.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3