Skip to content

Commit

Permalink
Fixed ack receipts not working for split packets
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Mar 1, 2024
1 parent a49718c commit fd74ba2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/generic/SendReliabilityLayer.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ public function addEncapsulatedToQueue(EncapsulatedPacket $packet, bool $immedia
$pk->splitInfo = new SplitPacketInfo($splitID, $count, $bufferCount);
$pk->reliability = $packet->reliability;
$pk->buffer = $buffer;
$pk->identifierACK = $packet->identifierACK;

if(PacketReliability::isReliable($pk->reliability)){
$pk->messageIndex = $this->messageIndex++;
Expand Down

0 comments on commit fd74ba2

Please sign in to comment.