This commit is contained in:
Dantenerosas 2023-10-18 00:48:55 +03:00
parent 5eeecd95ed
commit 0cc18950db

View File

@ -72,7 +72,7 @@ class MasterService:
case TelegramParser(): case TelegramParser():
loop = asyncio.new_event_loop() loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop) asyncio.set_event_loop(loop)
f: asyncio.Future = asyncio.run_coroutine_threadsafe(downloader.video_download()) f: asyncio.Future = asyncio.run_coroutine_threadsafe(downloader.video_download(), loop)
r = f.result(60) r = f.result(60)
# loop.close() # loop.close()
return r return r