Skip to content

Commit

Permalink
Test timeout enhancement.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lotharthesavior committed Dec 28, 2023
1 parent eb459a1 commit 6971131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ protected function handleClientConnection(): void
call_user_func($this->onMessageCallback, $this, $message);
}
} catch (TimeoutException $e) {
if ($this->timeout !== -1) {
if ($this->timeout === -1) {
throw $e;
}
} catch (Exception $e) {
Expand Down

0 comments on commit 6971131

Please sign in to comment.