Revert "改名"

This reverts commit fdf58326
This commit is contained in:
2022-01-10 18:47:31 +08:00
parent d479f36662
commit 753e521a41
+4 -2
View File
@@ -172,9 +172,11 @@ class AsyncClient extends ClientAbstracts
*/
public function close(): void
{
if (!$this->client || !$this->client->connected) {
/** @var SwowClient $client */
$client = $this->client;
if (!$client || !$client->isConnected()) {
return;
}
$this->client->close();
$client->close();
}
}