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 );
|
$().log( Level.INFO, "Closing listen thread {0}", listener.socket );
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
listener.interrupt();
|
||||||
listener.socket.close();
|
listener.socket.close();
|
||||||
listener.join();
|
listener.join();
|
||||||
} catch ( InterruptedException | IOException ex )
|
} catch ( InterruptedException | IOException ex )
|
||||||
|
@ -27,7 +27,7 @@ public class ListenThread extends Thread
|
|||||||
@Override
|
@Override
|
||||||
public void run()
|
public void run()
|
||||||
{
|
{
|
||||||
while ( BungeeCord.getInstance().isRunning )
|
while ( !isInterrupted() )
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user