浏览代码

Update Select.php

2276225819 8 年之前
父节点
当前提交
b2f0ad2f19
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Events/Select.php

+ 1 - 1
Events/Select.php

@@ -143,7 +143,7 @@ class Select implements EventInterface
                 $run_time = microtime(true) + $fd;
                 $this->_scheduler->insert($timer_id, -$run_time);
                 $this->_eventTimer[$timer_id] = array($func, (array)$args, $flag, $fd);
-                $this->tick();
+                $this->_selectTimeout = ($run_time - time()) * 1000000;  
                 return $timer_id;
         }