mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-01-19 17:58:26 +08:00
commit
782232fb1a
@ -17,7 +17,7 @@ async def _(matcher: Matcher, bot: Bot, event: Event, state: T_State):
|
|||||||
current_event_id = id(event)
|
current_event_id = id(event)
|
||||||
event_id = _running_matcher.get(session_id, None)
|
event_id = _running_matcher.get(session_id, None)
|
||||||
if event_id and event_id != current_event_id:
|
if event_id and event_id != current_event_id:
|
||||||
raise IgnoredException("Annother matcher running")
|
raise IgnoredException("Another matcher running")
|
||||||
|
|
||||||
_running_matcher[session_id] = current_event_id
|
_running_matcher[session_id] = current_event_id
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user