From d479f3666208e47bae88448b8da229ecbfb53a6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 10 Jan 2022 18:45:21 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=94=B9=E5=90=8D"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit fdf58326 --- AsyncClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AsyncClient.php b/AsyncClient.php index 954f1ed..c79eb5e 100644 --- a/AsyncClient.php +++ b/AsyncClient.php @@ -172,7 +172,7 @@ class AsyncClient extends ClientAbstracts */ public function close(): void { - if (!$this->client->connected) { + if (!$this->client || !$this->client->connected) { return; } $this->client->close();