diff --git a/README.md b/README.md index 8067e5b..69fb55d 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ ```python from blive import BLiver, Events, BLiverCtx + from blive.msg import DanMuMsg app = BLiver(123) @@ -148,6 +149,7 @@ async def rm_bliver(roomid:int): room = BLIVER_POOL.get(roomid,None) if room: room.cancel() + BLIVER_POOL.pop(roomid) return {"msg":"移除直播间弹幕监听成功"} diff --git a/example/with_fastapi.py b/example/with_fastapi.py index 313db15..871b487 100644 --- a/example/with_fastapi.py +++ b/example/with_fastapi.py @@ -34,6 +34,7 @@ async def rm_bliver(roomid: int): room = BLIVER_POOL.get(roomid, None) if room: room.cancel() + BLIVER_POOL.pop(roomid) return {"msg": "移除直播间弹幕监听成功"}