This commit is contained in:
2023-04-24 14:22:11 +08:00
parent 0b1016089e
commit e3837281fa
+1 -1
View File
@@ -39,7 +39,7 @@ class Context
*/ */
public static function inCoroutine(): bool public static function inCoroutine(): bool
{ {
return Coroutine::getCid() > -1; return class_exists(Coroutine::class) && Coroutine::getCid() > -1;
} }
} }