Skip to content

Commit

Permalink
main: exit librespot after the first ctrl+c if no currently active sp…
Browse files Browse the repository at this point in the history
…irc session.
  • Loading branch information
kingosticks committed Mar 13, 2019
1 parent 83bfdff commit 6a60059
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6a60059

Please sign in to comment.