This commit is contained in:
2021-12-17 04:24:40 +08:00
parent 7ee78a9642
commit 4b3c2234af
+3
View File
@@ -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;
}