From b0439544e3ffd4c10402f0b0fd05a527e970d9ef Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sat, 27 Feb 2021 04:59:18 +0800 Subject: [PATCH] modify --- System/Snowflake.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/System/Snowflake.php b/System/Snowflake.php index 55c4b46d..ecc40b30 100644 --- a/System/Snowflake.php +++ b/System/Snowflake.php @@ -393,7 +393,7 @@ class Snowflake */ public static function reload(): mixed { - return Process::kill((int)Snowflake::getMasterPid(), SIGUSR1); + return Snowflake::app()->getSwoole()->reload(); }