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:
parent
362106df62
commit
b6c676ad60
2 changed files with 9 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue