Skip to content

Commit 411a69f

Browse files
committed
bump initial buffer size
4 doesn't make sense
1 parent 71baf0c commit 411a69f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/denizenscript/depenizen/bungee/DepenizenConnection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public void sendPacket(PacketOut packet) {
108108
}
109109

110110
public void reallocateBuf(ChannelHandlerContext ctx) {
111-
ByteBuf newBuf = ctx.alloc().buffer(4);
111+
ByteBuf newBuf = ctx.alloc().buffer(32);
112112
if (packetBuffer != null) {
113113
newBuf.writeBytes(packetBuffer);
114114
packetBuffer.release();
@@ -121,7 +121,7 @@ public void handlerAdded(ChannelHandlerContext ctx) {
121121
if (packetBuffer != null) {
122122
packetBuffer.release();
123123
}
124-
packetBuffer = ctx.alloc().buffer(4);
124+
packetBuffer = ctx.alloc().buffer(32);
125125
lastPacketReceived = System.currentTimeMillis();
126126
}
127127

0 commit comments

Comments
 (0)