timeout
This commit is contained in:
parent
0cc18950db
commit
6424c12498
@ -73,7 +73,7 @@ class MasterService:
|
|||||||
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(), loop)
|
f: asyncio.Future = asyncio.run_coroutine_threadsafe(downloader.video_download(), loop)
|
||||||
r = f.result(60)
|
r = f.result(600)
|
||||||
# loop.close()
|
# loop.close()
|
||||||
return r
|
return r
|
||||||
case _:
|
case _:
|
||||||
|
Loading…
Reference in New Issue
Block a user