Fix sleeping on polling album art

This commit is contained in:
Stephen Seo 2021-09-20 20:45:07 +09:00
parent 726cbdb1ef
commit 92f2a441a4

View file

@ -533,7 +533,9 @@ fn info_loop(shared_data: Arc<Mutex<Shared>>) -> Result<(), String> {
//println!("poll_state == {:?}, skipping write...", poll_state);
}
thread::sleep(Duration::from_millis(50));
if poll_state != PollState::ReadPicture && poll_state != PollState::ReadPictureInDir {
thread::sleep(Duration::from_millis(50));
}
}
Ok(())
}