This commit is contained in:
as2252258@163.com
2021-02-27 03:31:35 +08:00
parent adc07fd850
commit bc365c7d7e
+1 -4
View File
@@ -71,11 +71,8 @@ class OnWorkerStart extends Callback
Coroutine::sleep(1);
}
}
go(function () use ($server) {
var_dump(Coroutine::waitPid($server->worker_id));
});
$server->stop($workerId, true);
var_dump(Coroutine::waitPid($server->worker_id));
} catch (\Throwable $exception) {
$this->addError($exception);
}