Fix #177 - greload and listeners

This commit is contained in:
md_5 2013-03-06 12:04:25 +11:00
parent 5c1d7e1c5b
commit 87e78bae7e
2 changed files with 2 additions and 1 deletions

View File

@ -201,6 +201,7 @@ public class BungeeCord extends ProxyServer
$().log( Level.INFO, "Closing listen thread {0}", listener.socket );
try
{
listener.interrupt();
listener.socket.close();
listener.join();
} catch ( InterruptedException | IOException ex )

View File

@ -27,7 +27,7 @@ public class ListenThread extends Thread
@Override
public void run()
{
while ( BungeeCord.getInstance().isRunning )
while ( !isInterrupted() )
{
try
{