diff --git a/kiri-engine/Context.php b/kiri-engine/Context.php index f5afa08a..a722661e 100644 --- a/kiri-engine/Context.php +++ b/kiri-engine/Context.php @@ -127,6 +127,9 @@ class Context extends BaseContext */ public static function remove(string $id, $coroutineId = null) { + if (is_null($coroutineId)) { + $coroutineId = Coroutine::getCid(); + } if (!static::hasContext($id, $coroutineId)) { return; }