Readd the delay removed in f9773a69c3

This commit is contained in:
Thinkofdeath 2015-05-08 20:41:21 +01:00
parent 76052b92d3
commit 585ab4f453

View File

@ -53,9 +53,16 @@ public class ServerConnection implements Server
public synchronized void disconnect(BaseComponent... reason) public synchronized void disconnect(BaseComponent... reason)
{ {
if ( !ch.isClosed() ) if ( !ch.isClosed() )
{
ch.getHandle().eventLoop().schedule( new Runnable()
{
@Override
public void run()
{ {
ch.getHandle().close(); ch.getHandle().close();
} }
}, 100, TimeUnit.MILLISECONDS );
}
} }