This commit is contained in:
2021-12-17 04:22:13 +08:00
parent 0216e761be
commit 848416af4f
+3
View File
@@ -165,6 +165,9 @@ class Context extends BaseContext
*/
private static function searchByCoroutine($id, $key = null, $coroutineId = null): bool
{
if (is_null($coroutineId)) {
$coroutineId = Coroutine::getCid();
}
if (!isset(Coroutine::getContext($coroutineId)[$id])) {
return false;
}