modify
This commit is contained in:
@@ -71,8 +71,10 @@ class OnWorkerStart extends Callback
|
|||||||
Coroutine::sleep(1);
|
Coroutine::sleep(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$server->stop($workerId);
|
go(function () use ($server) {
|
||||||
var_dump(Coroutine::waitPid($server->worker_pid));
|
Coroutine::waitPid($server->worker_pid);
|
||||||
|
});
|
||||||
|
$server->stop($workerId);;
|
||||||
} catch (\Throwable $exception) {
|
} catch (\Throwable $exception) {
|
||||||
$this->addError($exception);
|
$this->addError($exception);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user