This commit is contained in:
as2252258@163.com
2021-02-28 14:30:11 +08:00
parent 480e87d70b
commit a44b48b372
+3 -1
View File
@@ -68,7 +68,9 @@ class OnWorkerStart extends Callback
{
$this->debug(sprintf(workerName($worker_id) . ' #%d is start.....', $worker_id));
Coroutine\go(function (Server $server, $worker_id) {
Coroutine::waitSignal($this->signal);
if (!Coroutine::waitSignal($this->signal)) {
return 0;
}
while (Snowflake::app()->isRun()) {
Coroutine::sleep(1);
}