mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-23 08:31:26 +01:00
Flush in netty event loop
This commit is contained in:
parent
eb4a6baf8e
commit
e9d76cc742
@ -71,10 +71,12 @@ public class NettyPlayerConnection extends PlayerConnection {
|
||||
@Override
|
||||
public void update() {
|
||||
// Flush
|
||||
this.channel.eventLoop().submit(() -> {
|
||||
if (channel.isActive()) {
|
||||
writeWaitingPackets();
|
||||
this.channel.flush();
|
||||
}
|
||||
});
|
||||
// Network stats
|
||||
super.update();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user