Skip to content

Commit 56ac958

Browse files
committed
fix(audio): panic when messages arrive without a connection
1 parent 58694c8 commit 56ac958

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cosmic-applet-audio/src/pulse.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ pub fn connect() -> Subscription<Event> {
4343
(Some(Event::Disconnected), State::Connecting(from_pulse))
4444
}
4545
Some(m) => {
46-
log::error!("Unexpected message: {:?}", m);
47-
(None, State::Connecting(from_pulse))
46+
panic!("Unexpected message: {:?}", m);
4847
}
4948
None => {
5049
panic!("Pulse Sender dropped, something has gone wrong!");

0 commit comments

Comments
 (0)