From 94d7b083c5b7fe995aeb2de3ae863632dc3eff78 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 8 Mar 2019 15:30:41 +0100 Subject: [PATCH] fix(Pulseaudio): switch case --- src/modules/pulseaudio.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/pulseaudio.cpp b/src/modules/pulseaudio.cpp index c3a67b8d..0e82ead0 100644 --- a/src/modules/pulseaudio.cpp +++ b/src/modules/pulseaudio.cpp @@ -63,13 +63,13 @@ void waybar::modules::Pulseaudio::contextStateCb(pa_context *c, void *data) pa_context_set_subscribe_callback(c, subscribeCb, data); pa_context_subscribe(c, PA_SUBSCRIPTION_MASK_SINK, nullptr, nullptr); break; + case PA_CONTEXT_FAILED: + pa->mainloop_api_->quit(pa->mainloop_api_, 1); + break; case PA_CONTEXT_CONNECTING: case PA_CONTEXT_AUTHORIZING: case PA_CONTEXT_SETTING_NAME: - break; - case PA_CONTEXT_FAILED: default: - pa->mainloop_api_->quit(pa->mainloop_api_, 1); break; } }