From b29a0a9c1ce7a7642fa28fbdfc1282850d073ba2 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sat, 27 Feb 2021 03:22:22 +0800 Subject: [PATCH] modify --- System/Snowflake.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/System/Snowflake.php b/System/Snowflake.php index 28ed277d..af1153ac 100644 --- a/System/Snowflake.php +++ b/System/Snowflake.php @@ -388,8 +388,7 @@ class Snowflake */ public static function reload(): mixed { - return static::app()->getSwoole()->reload(); - return Process::kill((int)Snowflake::getMasterPid()); + return Process::kill((int)Snowflake::app()->getSwoole()->getMasterPid(),SIGUSR1); }