mirror of
https://github.com/baiqwerdvd/ArknightsUID.git
synced 2025-05-04 19:17:33 +08:00
fix: 另起线程下载资源
This commit is contained in:
parent
ac5d3c5490
commit
a6a3d80fb5
@ -1,12 +1,18 @@
|
||||
import asyncio
|
||||
import threading
|
||||
|
||||
from gsuid_core.logger import logger
|
||||
|
||||
from ..arknightsuid_resource import startup
|
||||
from ..utils.database.startup import ark_adapter
|
||||
|
||||
|
||||
async def all_start():
|
||||
await startup()
|
||||
await ark_adapter()
|
||||
try:
|
||||
await startup()
|
||||
await ark_adapter()
|
||||
except Exception as e:
|
||||
logger.exception(e)
|
||||
|
||||
|
||||
asyncio.run(all_start())
|
||||
threading.Thread(target=lambda: asyncio.run(all_start()), daemon=True).start()
|
||||
|
Loading…
x
Reference in New Issue
Block a user