mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-01-31 15:41:34 +08:00
修复阻止事件传递信号无效的问题
This commit is contained in:
parent
5efe1907ad
commit
31123b0573
@ -244,7 +244,7 @@ async def handle_event(bot: Bot, event: Event):
|
||||
results = await asyncio.gather(*pending_tasks, return_exceptions=True)
|
||||
|
||||
for result in results:
|
||||
if result is StopPropagation:
|
||||
if isinstance(result, StopPropagation):
|
||||
if not break_flag:
|
||||
break_flag = True
|
||||
logger.debug("Stop event propagation")
|
||||
|
Loading…
x
Reference in New Issue
Block a user