Fix #177 - greload and listeners
This commit is contained in:
@@ -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 )
|
||||
|
@@ -27,7 +27,7 @@ public class ListenThread extends Thread
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
while ( BungeeCord.getInstance().isRunning )
|
||||
while ( !isInterrupted() )
|
||||
{
|
||||
try
|
||||
{
|
||||
|
Reference in New Issue
Block a user