修复阻止事件传递信号无效的问题

This commit is contained in:
hemengyang 2020-11-18 14:43:12 +08:00
parent 5efe1907ad
commit 31123b0573

View File

@ -244,7 +244,7 @@ async def handle_event(bot: Bot, event: Event):
results = await asyncio.gather(*pending_tasks, return_exceptions=True) results = await asyncio.gather(*pending_tasks, return_exceptions=True)
for result in results: for result in results:
if result is StopPropagation: if isinstance(result, StopPropagation):
if not break_flag: if not break_flag:
break_flag = True break_flag = True
logger.debug("Stop event propagation") logger.debug("Stop event propagation")