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;
|
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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue