mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-10 02:17:41 +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
|
@Override
|
||||||
public void update() {
|
public void update() {
|
||||||
// Flush
|
// Flush
|
||||||
|
if (channel.isActive()) {
|
||||||
this.channel.flush();
|
this.channel.flush();
|
||||||
|
}
|
||||||
// Network stats
|
// Network stats
|
||||||
super.update();
|
super.update();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user