mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-20 06:56:18 -05:00
Disabling download manager when refresh has not completed.
This commit is contained in:
parent
5a0f961cd1
commit
636ce76777
1 changed files with 1 additions and 0 deletions
1
main.py
1
main.py
|
|
@ -180,6 +180,7 @@ async def periodic_downloads(app: Sanic):
|
|||
"""
|
||||
if not flags.refresh_complete.is_set():
|
||||
logger.warning('Refusing to download without refresh')
|
||||
download_manager.disable()
|
||||
return
|
||||
|
||||
# Set all downloads to new.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue