Revert "改名"
This reverts commit fdf58326
This commit is contained in:
+8
-2
@@ -42,8 +42,14 @@ class ProcessManager
|
||||
$system = sprintf('[%s].process', Config::get('id', 'system-service'));
|
||||
|
||||
$this->logger->debug($system . ' ' . $customProcess->getName() . ' start.');
|
||||
|
||||
$server->addProcess($process = $this->parse($customProcess, $system));
|
||||
$process = $this->parse($customProcess, $system);
|
||||
if (Context::inCoroutine()) {
|
||||
Coroutine::create(function () use ($process) {
|
||||
$process->start();
|
||||
});
|
||||
} else {
|
||||
$server->addProcess($process = $this->parse($customProcess, $system));
|
||||
}
|
||||
$this->_process[$customProcess->getName()] = $process;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user