mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-15 08:24:39 +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 (packetsBundledByThemselves.exists { _(packet) }) {
|
||||||
if (length == packetLength) {
|
if (length == packetLength) {
|
||||||
length = Long.MaxValue
|
length += MTU * 8
|
||||||
true // dequeue only packet
|
true // dequeue only packet
|
||||||
} else {
|
} else {
|
||||||
false // dequeue later
|
false // dequeue later
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue