mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-02-20 15:13:35 +00:00
Middleware: Add MTU rather than setting length to max
Don't want overflow errors here since the next iteration will still add their packet length.
This commit is contained in:
parent
9d3e468693
commit
22de086bb8
1 changed files with 1 additions and 1 deletions
|
|
@ -604,7 +604,7 @@ class MiddlewareActor(
|
|||
|
||||
if (packetsBundledByThemselves.exists { _(packet) }) {
|
||||
if (length == packetLength) {
|
||||
length = Long.MaxValue
|
||||
length += MTU * 8
|
||||
true // dequeue only packet
|
||||
} else {
|
||||
false // dequeue later
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue