1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-06 03:50:06 +02:00

Prevent librespot from panicking if server connection is lost.

This commit is contained in:
Konstantin Seiler 2020-01-22 21:55:45 +11:00
parent 362106df62
commit b6c676ad60
2 changed files with 9 additions and 3 deletions

View file

@ -500,7 +500,8 @@ impl Future for Main {
if self.shutdown {
return Ok(Async::Ready(()));
} else {
panic!("Spirc shut down unexpectedly");
warn!("Spirc shut down unexpectedly");
self.spirc_task = None;
}
}
}