浏览代码

reset stream_select return value

walkor 4 年之前
父节点
当前提交
a9a00833fd
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      Events/Select.php

+ 3 - 2
Events/Select.php

@@ -261,9 +261,10 @@ class Select implements EventInterface
                 \pcntl_signal_dispatch();
             }
 
-            $read  = $this->_readFds;
-            $write = $this->_writeFds;
+            $read   = $this->_readFds;
+            $write  = $this->_writeFds;
             $except = $this->_exceptFds;
+            $ret    = false;
 
             if ($read || $write || $except) {
                 // Waiting read/write/signal/timeout events.