Always use eventloop since we cannot be sure about plugins, thanks @MonsieurApple for the report.

This commit is contained in:
md_5 2013-07-12 09:29:53 +10:00
parent 58ca63e2b1
commit fb1cab499d

View File

@ -303,6 +303,12 @@ public class InitialHandler extends PacketHandler implements PendingConnection
}
thisState = InitialHandler.State.LOGIN;
ch.getHandle().eventLoop().execute( new Runnable()
{
@Override
public void run()
{
unsafe().sendPacket( new PacketFCEncryptionResponse( new byte[ 0 ], new byte[ 0 ] ) );
try
{
@ -313,6 +319,8 @@ public class InitialHandler extends PacketHandler implements PendingConnection
disconnect( "Cipher error: " + Util.exception( ex ) );
}
}
} );
}
};
// fire login event