mirror of
https://github.com/oSumAtrIX/free-librespot.git
synced 2025-12-19 18:04:20 +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 !self.shutdown {
|
||||||
if let Some(ref spirc) = self.spirc {
|
if let Some(ref spirc) = self.spirc {
|
||||||
spirc.shutdown();
|
spirc.shutdown();
|
||||||
|
} else {
|
||||||
|
return Ok(Async::Ready(()));
|
||||||
}
|
}
|
||||||
self.shutdown = true;
|
self.shutdown = true;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue