mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-11-21 20:00:49 +01:00
The 15 minute byte budget sweep deletes cover files behind the cache manager. Lookups through the index already check that the file exists, but getFileFromMemory does not, so audio_service could pass the system media session a path to a deleted cover (no art on the notification or lock screen), and the index kept rows for the deleted files until each was looked up again. A memory hit now counts only while its file exists, and after a sweep that deleted files the cache re-checks each index entry whose file is gone (the existence check runs in a worker), which drops it from the index and the memory cache unless a download has replaced it since.