Fix: stop player when Spotify worker thread dies

May help with #628
This commit is contained in:
Henrik Friedrichsen
2021-10-18 21:59:48 +02:00
parent 1ea2f0a434
commit 6a0ab196f2

View File

@@ -64,6 +64,13 @@ impl Worker {
}
}
impl Drop for Worker {
fn drop(&mut self) {
debug!("Worker thread is shutting down, stopping player");
self.player.stop();
}
}
impl Worker {
fn get_token(
&self,