Skip to content

Commit 7020209

Browse files
committed
Added connection monitoring
1 parent aaabf0a commit 7020209

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ function () {
255255

256256
public function isConnected(): bool
257257
{
258-
return $this->state === self::STATE_CONNECTED;
258+
return $this->state === self::STATE_CONNECTED && $this->connection->connected();
259259
}
260260

261261
/**

0 commit comments

Comments
 (0)