Revert "改名"

This reverts commit fdf58326
This commit is contained in:
2022-01-10 18:44:20 +08:00
parent 030f337e74
commit 6984f78746
+4 -1
View File
@@ -10,8 +10,8 @@ declare(strict_types=1);
namespace Kiri; namespace Kiri;
use Exception; use Exception;
use Kiri\Message\Stream;
use Kiri\Abstracts\Logger; use Kiri\Abstracts\Logger;
use Kiri\Message\Stream;
use Swoole\Client as SwowClient; use Swoole\Client as SwowClient;
/** /**
@@ -172,6 +172,9 @@ class AsyncClient extends ClientAbstracts
*/ */
public function close(): void public function close(): void
{ {
if (!$this->client->connected) {
return;
}
$this->client->close(); $this->client->close();
} }
} }