We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82e6cea commit 0d3fdfeCopy full SHA for 0d3fdfe
src/main/scala/li/cil/oc/common/PacketHandler.scala
@@ -38,6 +38,10 @@ abstract class PacketHandler {
38
if (stream != null) {
39
stream.close()
40
}
41
+ // #3703 - neither 1.7.10 nor 1.12.2 release the packet ByteBuf by themselves
42
+ if (data != null && data.refCnt() > 0) {
43
+ data.release();
44
+ }
45
46
47
// Avoid AFK kicks by marking players as non-idle when they send packets.
0 commit comments