From 05ee3026a87d36821de1611fe86bdf43a4c04207 Mon Sep 17 00:00:00 2001 From: walkor Date: Fri, 16 Apr 2021 15:38:08 +0800 Subject: [PATCH] fix #4 --- src/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index dca9483..517df8b 100644 --- a/src/Client.php +++ b/src/Client.php @@ -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();