Only flush when the channel is active

This commit is contained in:
themode 2021-02-17 05:12:43 +01:00
parent 590e6cb939
commit 9ed3bd929c

View File

@ -67,7 +67,9 @@ public class NettyPlayerConnection extends PlayerConnection {
@Override
public void update() {
// Flush
this.channel.flush();
if (channel.isActive()) {
this.channel.flush();
}
// Network stats
super.update();
}