mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-09 01:47:54 +01:00
Only flush when the channel is active
This commit is contained in:
parent
590e6cb939
commit
9ed3bd929c
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user