This commit is contained in:
as2252258@163.com
2021-09-20 00:55:23 +08:00
parent 6dd2be22a2
commit cac822603b
+1 -1
View File
@@ -90,7 +90,7 @@ class ServerCommand extends Command
}
Coroutine::set([
'hook_flags' => SWOOLE_HOOK_ALL ^ SWOOLE_HOOK_BLOCKING_FUNCTION,
'enable_deadlock_check' => false,
'enable_deadlock_check' => TRUE,
'exit_condition' => function () {
return Coroutine::stats()['coroutine_num'] === 0;
}