This commit is contained in:
2020-10-09 17:38:50 +08:00
parent c752afc08f
commit 188e282cb1
+1 -1
View File
@@ -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();
}
// }}}