This commit is contained in:
as2252258@163.com
2021-02-27 03:28:44 +08:00
parent 4a0cd46f56
commit e443b25723
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ class OnWorkerStart extends Callback
Coroutine::sleep(1); Coroutine::sleep(1);
} }
} }
$server->stop(); $server->stop($workerId, true);
} catch (\Throwable $exception) { } catch (\Throwable $exception) {
$this->addError($exception); $this->addError($exception);
} }
+1 -1
View File
@@ -245,7 +245,7 @@ class Snowflake
public static function getMasterPid(): bool|string public static function getMasterPid(): bool|string
{ {
$pid = Snowflake::app()->getSwoole()->setting['pid_file']; $pid = Snowflake::app()->getSwoole()->setting['pid_file'];
return file_get_contents($pid); return file_get_contents($pid);
} }