改名
This commit is contained in:
+4
-1
@@ -417,7 +417,10 @@ class Socket
|
|||||||
*/
|
*/
|
||||||
protected function isSocketDead()
|
protected function isSocketDead()
|
||||||
{
|
{
|
||||||
return !$this->stream instanceof \Swoole\Coroutine\Socket || !$this->stream->checkLiveness();
|
if (!($this->stream instanceof \Swoole\Coroutine\Socket)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return $this->stream->checkLiveness();
|
||||||
}
|
}
|
||||||
|
|
||||||
// }}}
|
// }}}
|
||||||
|
|||||||
Reference in New Issue
Block a user