From 188e282cb16d087cc53260639aa6605c64ba9b29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 9 Oct 2020 17:38:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Kafka/Socket.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kafka/Socket.php b/Kafka/Socket.php index 9ec92300..306c17ee 100644 --- a/Kafka/Socket.php +++ b/Kafka/Socket.php @@ -417,7 +417,7 @@ class Socket */ protected function isSocketDead() { - return $this->stream instanceof \Swoole\Coroutine\Socket && $this->stream->checkLiveness(); + return !$this->stream instanceof \Swoole\Coroutine\Socket || !$this->stream->checkLiveness(); } // }}}