Skip to content

Commit

Permalink
fix #4
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor committed Apr 16, 2021
1 parent 2a5599e commit 05ee302
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 @@ -429,7 +429,7 @@ public function connect()

$this->_connectTimeoutTimer = Timer::add($timeout, function () use ($timeout) {
$this->_connectTimeoutTimer = null;
if ($this->_connection && $this->_connection->status(false) === 'ESTABLISHED') {
if ($this->_connection && $this->_connection->getStatus(false) === 'ESTABLISHED') {
return;
}
$this->closeConnection();
Expand Down

0 comments on commit 05ee302

Please sign in to comment.