fix(audio): panic when messages arrive without a connection

This commit is contained in:
Ashley Wulber 2023-03-13 15:56:09 -04:00 committed by Ashley Wulber
parent 58694c8735
commit 56ac958de7

View file

@ -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!");