From c32ae6ffd989e6509087453e92649524896a99ee Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sun, 2 May 2021 05:11:49 +0800 Subject: [PATCH] modify --- HttpServer/Http/Context.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }