mirror of
https://github.com/baiqwerdvd/ArknightsUID.git
synced 2025-05-05 03:23:45 +08:00
fix: 另起线程下载资源
This commit is contained in:
parent
ac5d3c5490
commit
a6a3d80fb5
@ -1,12 +1,18 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
|
import threading
|
||||||
|
|
||||||
|
from gsuid_core.logger import logger
|
||||||
|
|
||||||
from ..arknightsuid_resource import startup
|
from ..arknightsuid_resource import startup
|
||||||
from ..utils.database.startup import ark_adapter
|
from ..utils.database.startup import ark_adapter
|
||||||
|
|
||||||
|
|
||||||
async def all_start():
|
async def all_start():
|
||||||
await startup()
|
try:
|
||||||
await ark_adapter()
|
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