mirror of
https://github.com/rommapp/romm.git
synced 2026-12-04 12:52:19 +01:00
The refresh lists a rom folder and then deletes every row the listing missed, so two uploads completing at once could let the slower listing drop the file the faster one had just registered. Hold a per rom lock across the listing and the sync. Three smaller fixes on the same paths: - honour SKIP_TITLE_ID_EXTRACTION, which the refresh read the hash flag but not this one for - emit a rom that just stopped being missing even when its files did not change, so an open gallery drops the stale badge - unlink the empty destination claim when the rename meant to replace it fails, rather than leave a zero byte file for the next scan to ingest Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>