This commit is contained in:
2020-10-14 10:43:43 +08:00
parent 6986ca7a67
commit 7af3a5a7ad
+7 -7
View File
@@ -27,13 +27,13 @@ class OnManagerStop extends Callback
$events = Snowflake::app()->event;
$events->trigger(Event::SERVER_MANAGER_STOP, [$server]);
// $runPath = storage(null, 'workerIds');
// foreach (glob($runPath . '/*') as $item) {
// if (!file_exists($item)) {
// continue;
// }
// @unlink($item);
// }
$runPath = storage(null, 'worker');
foreach (glob($runPath . '/*') as $item) {
if (!file_exists($item)) {
continue;
}
@unlink($item);
}
}
}