Skip to content

Commit ab72a28

Browse files
authored
Merge pull request #4 from BIG5Concepts/1.x
Fix reconnect on connection reset
2 parents 3d53f8b + 25438d6 commit ab72a28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Wamp/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ private function send($data, int $opcode = WebsocketPayload::OPCODE_TEXT): void
307307
);
308308

309309
// Check if the connection was reset, if so try to reconnect
310-
if (0 === @fwrite($this->socket, $encoded)) {
310+
if (false === @fwrite($this->socket, $encoded)) {
311311
$this->connected = false;
312312
$this->connect($this->target);
313313

0 commit comments

Comments
 (0)