🐛 fix bug and improve test coverage

This commit is contained in:
AkiraXie
2022-01-20 03:16:04 +08:00
parent b3d0e7c548
commit f6308916ad
3 changed files with 14 additions and 4 deletions

View File

@ -21,7 +21,7 @@ async def matcher_mutex(event: Event) -> Generator[bool, None, None]:
else:
_running_matcher[session_id] = current_event_id
yield result
if result:
if not result:
del _running_matcher[session_id]