mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-07-15 16:34:42 +00:00
force RelatedB packets into a slot defined between 0-3 exclusively
This commit is contained in:
parent
b8ea569b1c
commit
99665932d1
1 changed files with 2 additions and 2 deletions
|
|
@ -932,7 +932,7 @@ class MiddlewareActor(
|
||||||
private def inSubslotNotMissing(slot: Int, subslot: Int, inner: ByteVector): Unit = {
|
private def inSubslotNotMissing(slot: Int, subslot: Int, inner: ByteVector): Unit = {
|
||||||
if (subslot == inSubslot + 1) {
|
if (subslot == inSubslot + 1) {
|
||||||
in(PacketCoding.decodePacket(inner))
|
in(PacketCoding.decodePacket(inner))
|
||||||
send(RelatedB(slot, subslot))
|
send(RelatedB(slot % 4, subslot))
|
||||||
inSubslot = subslot
|
inSubslot = subslot
|
||||||
} else if (subslot > inSubslot + 1) {
|
} else if (subslot > inSubslot + 1) {
|
||||||
in(PacketCoding.decodePacket(inner))
|
in(PacketCoding.decodePacket(inner))
|
||||||
|
|
@ -1005,7 +1005,7 @@ class MiddlewareActor(
|
||||||
if (inSubslotsMissing.isEmpty) {
|
if (inSubslotsMissing.isEmpty) {
|
||||||
subslotMissingProcessor.cancel()
|
subslotMissingProcessor.cancel()
|
||||||
activeSubslotsFunc = inSubslotNotMissing
|
activeSubslotsFunc = inSubslotNotMissing
|
||||||
send(RelatedB(slot, inSubslot)) //send a confirmation packet after all requested packets are handled
|
send(RelatedB(slot % 4, inSubslot)) //send a confirmation packet after all requested packets are handled
|
||||||
log.trace("normalcy with packet subslot order; resuming normal workflow")
|
log.trace("normalcy with packet subslot order; resuming normal workflow")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue