Skip to content

Commit 1ea8e3b

Browse files
committed
ReceiveReliabilityLayer: fixed memory leak, sequenced should actually work properly now
1 parent cf8a575 commit 1ea8e3b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/generic/ReceiveReliabilityLayer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ private function handleEncapsulatedPacket(EncapsulatedPacket $packet) : void{
213213
//Any ordered packet resets the sequence index to zero, so that sequenced packets older than this ordered
214214
//one get discarded. Sequenced packets also include (but don't increment) the order index, so a sequenced
215215
//packet with an order index less than this will get discarded
216-
$this->receiveSequencedHighestIndex[$packet->orderIndex] = 0;
216+
$this->receiveSequencedHighestIndex[$packet->orderChannel] = 0;
217217
$this->receiveOrderedIndex[$packet->orderChannel] = $packet->orderIndex + 1;
218218

219219
$this->handleEncapsulatedPacketRoute($packet);

0 commit comments

Comments
 (0)