402048 org.eclipse.jetty.server.ShutdownMonitor doesn't stop after the jetty server is stopped

This commit is contained in:
Jan Bartel 2013-03-02 10:12:24 +11:00
parent 90bab0eb66
commit 3ed3dfc7a1
1 changed files with 3 additions and 1 deletions

View File

@ -157,7 +157,7 @@ public class ShutdownMonitor extends Thread
return; return;
} }
while (true) while (serverSocket != null)
{ {
Socket socket = null; Socket socket = null;
try try
@ -190,7 +190,9 @@ public class ShutdownMonitor extends Thread
// Shutdown Monitor // Shutdown Monitor
debug("Shutting down monitor"); debug("Shutting down monitor");
close(socket); close(socket);
socket = null;
close(serverSocket); close(serverSocket);
serverSocket = null;
if (exitVm) if (exitVm)
{ {