Fix issue #211 - ServerInfo.ping
This commit is contained in:
parent
a12debf6d0
commit
49f2f5f28b
@ -59,12 +59,14 @@ public class BungeeServerInfo extends ServerInfo
|
||||
@Override
|
||||
public void operationComplete(ChannelFuture future) throws Exception
|
||||
{
|
||||
if ( !future.isSuccess() )
|
||||
if ( future.isSuccess() )
|
||||
{
|
||||
future.channel().pipeline().get( HandlerBoss.class ).setHandler( new PingHandler( BungeeServerInfo.this, callback ) );
|
||||
} else
|
||||
{
|
||||
callback.done( null, future.cause() );
|
||||
}
|
||||
}
|
||||
} )
|
||||
.channel().pipeline().get( HandlerBoss.class ).setHandler( new PingHandler( this, callback ) );
|
||||
} );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user