stanley-king 3 年之前
父节点
当前提交
152b08d875
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      helper/queue/iqueue.php

+ 2 - 2
helper/queue/iqueue.php

@@ -247,8 +247,7 @@ abstract class ILooper
 
         $this->_pause = 1;
         do{
-//            Swoole\Coroutine::sleep(1);
-            Co::sleep(1);
+            Swoole\Coroutine::sleep(1);
         } while($this->_pause == 1);
         $this->wait();
 
@@ -273,6 +272,7 @@ abstract class ILooper
 
     private function wait()
     {
+        include "./abc.php";
         do {
             $res = Swoole\Coroutine::stats();
             $num = $res['coroutine_num'];