Skip to content

Commit

Permalink
It took me 2 hours to find this bug ............
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Mar 2, 2024
1 parent 90d8ce3 commit b1a31e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generic/SendReliabilityLayer.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ private function updateReliableWindow() : void{
isset($this->reliableWindow[$this->reliableWindowStart]) && //this messageIndex has been used
$this->reliableWindow[$this->reliableWindowStart] === true //we received an ack for this messageIndex
){
unset($this->reliableWindow[$this->reliableWindowStart]);
$this->reliableWindowStart++;
$this->reliableWindowEnd++;
unset($this->reliableWindow[$this->reliableWindowStart]);
}
}

Expand Down

0 comments on commit b1a31e8

Please sign in to comment.