fix: Lock an register_extra_routes uebergeben fuer atomare Progress-Writes
Verhindert Race Condition zwischen api_download und api_download_progress beim gleichzeitigen Schreiben in .download_progress.json
This commit is contained in:
parent
27ca687923
commit
b45b377ffe
1 changed files with 4 additions and 1 deletions
|
|
@ -786,7 +786,10 @@ def api_download():
|
|||
# Extra-Routes (Downloads, Status, Health) - lokal in /opt/savetv_extra_routes.py
|
||||
try:
|
||||
from savetv_extra_routes import register_extra_routes
|
||||
register_extra_routes(app)
|
||||
register_extra_routes(app,
|
||||
progress_lock=_PROGRESS_LOCK,
|
||||
load_progress_raw=_load_progress_raw,
|
||||
save_progress_raw=_save_progress_raw)
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue