Skip to content

Commit b31e26b

Browse files
committed
- minor buffer size estimation correction.
1 parent c9a65a2 commit b31e26b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net/outgoing-packets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ export class OutgoingPackets {
339339
}
340340

341341
private segment(container: ItemContainer, start: number): { bitset: number, buffer: Buffer } {
342-
const bound = 1 + (7 * 8);
342+
const bound = 7 * 8;
343343
const payload = new Packet(-1, PacketType.FIXED, bound);
344344

345345
let bitset: number = 0;

0 commit comments

Comments
 (0)