mirror of
https://github.com/Minestom/Minestom.git
synced 2024-10-03 00:47:28 +02:00
Remove unnecessary chaining
This commit is contained in:
parent
a61034fc1d
commit
9b9cd2ed03
@ -201,7 +201,8 @@ public class NettyPlayerConnection extends PlayerConnection {
|
|||||||
synchronized (tickBuffer) {
|
synchronized (tickBuffer) {
|
||||||
final ByteBuf copy = tickBuffer.copy();
|
final ByteBuf copy = tickBuffer.copy();
|
||||||
|
|
||||||
ChannelFuture channelFuture = channel.write(new FramedPacket(copy)).addListener(future -> copy.release());
|
ChannelFuture channelFuture = channel.write(new FramedPacket(copy));
|
||||||
|
channelFuture.addListener(future -> copy.release());
|
||||||
|
|
||||||
// Netty debug
|
// Netty debug
|
||||||
if (MinecraftServer.shouldProcessNettyErrors()) {
|
if (MinecraftServer.shouldProcessNettyErrors()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user