mirror of
https://github.com/Refound-445/nonebot-plugin-nailongremove.git
synced 2025-11-04 21:22:43 +08:00
fix
This commit is contained in:
parent
ca3be73054
commit
308d8af559
@ -9,7 +9,7 @@ require("nonebot_plugin_uninfo")
|
|||||||
from . import handler as handler
|
from . import handler as handler
|
||||||
from .config import Config
|
from .config import Config
|
||||||
|
|
||||||
__version__ = "2.1.1"
|
__version__ = "2.1.1.post1"
|
||||||
__plugin_meta__ = PluginMetadata(
|
__plugin_meta__ = PluginMetadata(
|
||||||
name="自动撤回奶龙",
|
name="自动撤回奶龙",
|
||||||
description="一个基于图像分类模型的简单插件~",
|
description="一个基于图像分类模型的简单插件~",
|
||||||
|
|||||||
@ -139,8 +139,8 @@ async def check_frames(
|
|||||||
return ok
|
return ok
|
||||||
|
|
||||||
for f in frames:
|
for f in frames:
|
||||||
if (sem.locked() or signal.done()) and (await wait_result()):
|
if (sem.locked() or signal.done()) and (r := await wait_result())[0]:
|
||||||
return True, None
|
return r
|
||||||
asyncio.create_task(task(f))
|
asyncio.create_task(task(f))
|
||||||
|
|
||||||
return await wait_result()
|
return await wait_result()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user