Fix sleeping on polling album art
This commit is contained in:
parent
726cbdb1ef
commit
92f2a441a4
1 changed files with 3 additions and 1 deletions
|
@ -533,8 +533,10 @@ fn info_loop(shared_data: Arc<Mutex<Shared>>) -> Result<(), String> {
|
||||||
//println!("poll_state == {:?}, skipping write...", poll_state);
|
//println!("poll_state == {:?}, skipping write...", poll_state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if poll_state != PollState::ReadPicture && poll_state != PollState::ReadPictureInDir {
|
||||||
thread::sleep(Duration::from_millis(50));
|
thread::sleep(Duration::from_millis(50));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue