diff --git a/src/core/master_service.py b/src/core/master_service.py index 68e1d84..50661a2 100644 --- a/src/core/master_service.py +++ b/src/core/master_service.py @@ -72,7 +72,7 @@ class MasterService: case TelegramParser(): loop = asyncio.new_event_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) # loop.close() return r