Skip to content

Commit

Permalink
fix: Wrong order for $seq
Browse files Browse the repository at this point in the history
  • Loading branch information
L3tum committed Feb 6, 2024
1 parent 4605e3f commit 1648eeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/RPC/MultiRPC.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,13 @@ public function callAsync(string $method, mixed $payload): int

$relay = $this->getNextFreeRelay();
$seq = self::$seq;
self::$seq++;
$this->occupiedRelays[$seq] = $relay;
$this->seqToRelayMap[$seq] = $relay;

$relay->send($this->packFrame($method, $payload));

self::$seq++;

return $seq;
}

Expand Down

0 comments on commit 1648eeb

Please sign in to comment.