main: exit librespot after the first ctrl+c if no currently active spirc session.

This commit is contained in:
Nick Steel 2019-03-13 18:47:56 +00:00
parent 83bfdffcfe
commit 6a600596e8

View file

@ -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 {