diff --git a/kiri-engine/Context.php b/kiri-engine/Context.php index 8fab6593..7903ddd5 100644 --- a/kiri-engine/Context.php +++ b/kiri-engine/Context.php @@ -135,8 +135,13 @@ class Context extends BaseContext } if (Coroutine::getCid() === -1) { static::$_contents[$id] = null; + + unset(static::$_contents[$id]); + } else { Coroutine::getContext($coroutineId)[$id] = null; + + unset(Coroutine::getContext($coroutineId)[$id]); } }