mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-23 18:55:22 +01:00
Fix #177 - greload and listeners
This commit is contained in:
parent
5c1d7e1c5b
commit
87e78bae7e
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user