mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
main: exit librespot after the first ctrl+c if no currently active spirc session.
This commit is contained in:
parent
83bfdffcfe
commit
6a600596e8
1 changed files with 2 additions and 0 deletions
|
@ -445,6 +445,8 @@ impl Future for Main {
|
|||
if !self.shutdown {
|
||||
if let Some(ref spirc) = self.spirc {
|
||||
spirc.shutdown();
|
||||
} else {
|
||||
return Ok(Async::Ready(()));
|
||||
}
|
||||
self.shutdown = true;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue