diff --git a/HttpServer/Http/Context.php b/HttpServer/Http/Context.php index c9773685..839162d5 100644 --- a/HttpServer/Http/Context.php +++ b/HttpServer/Http/Context.php @@ -238,7 +238,7 @@ class Context extends BaseContext */ public static function inCoroutine(): bool { - return Coroutine::getCid() === -1; + return Coroutine::getCid() !== -1; } }