mirror of
https://github.com/Dummi26/musicdb.git
synced 2025-03-10 14:13:53 +01:00
fix CacheManager-related function, automatic loading of songs should work now.
This commit is contained in:
parent
8620fcd4ec
commit
353fe7f984
@ -88,8 +88,8 @@ impl Song {
|
||||
let mut cd = self.cached_data.0.lock().unwrap();
|
||||
match cd.0.as_ref() {
|
||||
None => (),
|
||||
Some(Err(_)) => return Err(false),
|
||||
Some(Ok(_)) => return Err(true),
|
||||
Some(Err(_)) => return Err(true),
|
||||
Some(Ok(_)) => return Err(false),
|
||||
};
|
||||
let src = if let Some(dlcon) = &db.remote_server_as_song_file_source {
|
||||
Err((self.id, Arc::clone(dlcon)))
|
||||
|
Loading…
Reference in New Issue
Block a user