Explorar o código

Update Worker.php

walkor %!s(int64=7) %!d(string=hai) anos
pai
achega
fd78b42d04
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Worker.php

+ 1 - 0
Worker.php

@@ -1729,6 +1729,7 @@ class Worker
         }
 
         // For child processes.
+        reset(static::$_workers);
         /** @var \Workerman\Worker $worker */
         $worker            = current(static::$_workers);
         $worker_status_str = posix_getpid() . "\t" . str_pad(round(memory_get_usage(true) / (1024 * 1024), 2) . "M", 7)