Disabling download manager when refresh has not completed.

This commit is contained in:
Roland 2023-01-04 11:51:11 -07:00
parent 5a0f961cd1
commit 636ce76777
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -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.