modify
This commit is contained in:
@@ -48,12 +48,9 @@ class OnWorkerStart extends Callback
|
|||||||
putenv('state=start');
|
putenv('state=start');
|
||||||
putenv('worker=' . $worker_id);
|
putenv('worker=' . $worker_id);
|
||||||
|
|
||||||
$isWorker = $this->isWorker($worker_id);
|
$isWorker = $this->injectLoader($this->isWorker($worker_id));
|
||||||
if ($this->injectLoader($isWorker)) {
|
|
||||||
$this->onWorker($server, $worker_id);
|
$this->{$isWorker ? 'onWorker' : 'onTask'}($server);
|
||||||
} else {
|
|
||||||
$this->onTask($server);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user