Fix network buffers not being released in some places (#4510)

This commit is contained in:
Ben Staddon authored and LexManos committed 2017-11-11 15:19:00 -08:00
1 parent a59d20fc02
commit ad202e2e83
2 files changed
+2

No files matched your search

@@ -100,6 +100,7 @@ public abstract class FMLIndexedMessageToMessageCodec<A> extends MessageToMessag
ctx.channel().attr(INBOUNDPACKETTRACKER).get().set(new WeakReference<FMLProxyPacket>(msg));
decodeInto(ctx, payload.slice(), newMsg);
out.add(newMsg);
payload.release();
}
/**
@@ -47,6 +47,7 @@ public class ChannelRegistrationHandler extends SimpleChannelInboundHandler<FMLP
String[] split = channels.split("\0");
Set<String> channelSet = ImmutableSet.copyOf(split);
FMLCommonHandler.instance().fireNetRegistrationEvent(manager, channelSet, msg.channel(), side);
msg.payload().release();
}
else
{