mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Exit with an error when the player instance is invalid
This commit is contained in:
parent
e3db0994bc
commit
e5abed7c92
1 changed files with 4 additions and 0 deletions
|
@ -1817,6 +1817,10 @@ async fn main() {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
_ = async {}, if player.is_invalid() => {
|
||||||
|
error!("Player shut down unexpectedly");
|
||||||
|
exit(1);
|
||||||
|
},
|
||||||
_ = tokio::signal::ctrl_c() => {
|
_ = tokio::signal::ctrl_c() => {
|
||||||
break;
|
break;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue