Using flag correctly.

This commit is contained in:
Roland 2022-12-23 16:12:19 -07:00
parent d80e26caeb
commit e0c6a2e40e
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -185,7 +185,7 @@ async def periodic_downloads(app: Sanic):
Limited to only one process.
"""
if not flags.refresh_complete:
if not flags.refresh_complete.is_set():
logger.warning('Refusing to download without refresh')
return