Просмотр исходного кода

Merge pull request #192 from 2276225819/patch-3

Timer Issue
walkor 8 лет назад
Родитель
Сommit
9e2c1aabd9
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;
         }