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

+ 2 - 1
helper/queue/iqueue.php

@@ -247,7 +247,8 @@ abstract class ILooper
 
         $this->_pause = 1;
         do{
-            Swoole\Coroutine::sleep(1);
+//            Swoole\Coroutine::sleep(1);
+            Co::sleep(1);
         } while($this->_pause == 1);
         $this->wait();