Explorar el Código

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

Nick Steel hace 6 años
padre
commit
6a600596e8
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/main.rs

+ 2 - 0
src/main.rs

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