This commit is contained in:
as2252258@163.com
2021-07-26 04:22:23 +08:00
parent 6c78b4ee3b
commit abdaeb3e08
-7
View File
@@ -117,15 +117,8 @@ class ServerWorker extends \Server\Abstracts\Server
putenv('state=exit');
var_dump('worker exit .' . $workerId);
Event::trigger(Event::SERVER_WORKER_EXIT, [$server, $workerId]);
$coros = Coroutine::listCoroutines();
foreach($coros as $cid)
{
var_dump(Coroutine::cancel($cid), swoole_last_error());
}
Snowflake::getApp('logger')->insert();
}