fix(audio): panic when messages arrive without a connection
This commit is contained in:
parent
58694c8735
commit
56ac958de7
1 changed files with 1 additions and 2 deletions
|
|
@ -43,8 +43,7 @@ pub fn connect() -> Subscription<Event> {
|
|||
(Some(Event::Disconnected), State::Connecting(from_pulse))
|
||||
}
|
||||
Some(m) => {
|
||||
log::error!("Unexpected message: {:?}", m);
|
||||
(None, State::Connecting(from_pulse))
|
||||
panic!("Unexpected message: {:?}", m);
|
||||
}
|
||||
None => {
|
||||
panic!("Pulse Sender dropped, something has gone wrong!");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue