Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lgc2333 committed Oct 29, 2024
1 parent ca3be73 commit 308d8af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nonebot_plugin_nailongremove/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from . import handler as handler
from .config import Config

__version__ = "2.1.1"
__version__ = "2.1.1.post1"
__plugin_meta__ = PluginMetadata(
name="自动撤回奶龙",
description="一个基于图像分类模型的简单插件~",
Expand Down
4 changes: 2 additions & 2 deletions nonebot_plugin_nailongremove/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ async def wait_result():
return ok

for f in frames:
if (sem.locked() or signal.done()) and (await wait_result()):
return True, None
if (sem.locked() or signal.done()) and (r := await wait_result())[0]:
return r
asyncio.create_task(task(f))

return await wait_result()
Expand Down

0 comments on commit 308d8af

Please sign in to comment.