402048 org.eclipse.jetty.server.ShutdownMonitor doesn't stop after the jetty server is stopped
This commit is contained in:
parent
90bab0eb66
commit
3ed3dfc7a1
|
@ -157,7 +157,7 @@ public class ShutdownMonitor extends Thread
|
|||
return;
|
||||
}
|
||||
|
||||
while (true)
|
||||
while (serverSocket != null)
|
||||
{
|
||||
Socket socket = null;
|
||||
try
|
||||
|
@ -190,7 +190,9 @@ public class ShutdownMonitor extends Thread
|
|||
// Shutdown Monitor
|
||||
debug("Shutting down monitor");
|
||||
close(socket);
|
||||
socket = null;
|
||||
close(serverSocket);
|
||||
serverSocket = null;
|
||||
|
||||
if (exitVm)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue