fix(Pulseaudio): switch case

This commit is contained in:
Alex 2019-03-08 15:30:41 +01:00
parent ef88f0a223
commit 94d7b083c5
1 changed files with 3 additions and 3 deletions

View File

@ -63,13 +63,13 @@ void waybar::modules::Pulseaudio::contextStateCb(pa_context *c, void *data)
pa_context_set_subscribe_callback(c, subscribeCb, data); pa_context_set_subscribe_callback(c, subscribeCb, data);
pa_context_subscribe(c, PA_SUBSCRIPTION_MASK_SINK, nullptr, nullptr); pa_context_subscribe(c, PA_SUBSCRIPTION_MASK_SINK, nullptr, nullptr);
break; break;
case PA_CONTEXT_FAILED:
pa->mainloop_api_->quit(pa->mainloop_api_, 1);
break;
case PA_CONTEXT_CONNECTING: case PA_CONTEXT_CONNECTING:
case PA_CONTEXT_AUTHORIZING: case PA_CONTEXT_AUTHORIZING:
case PA_CONTEXT_SETTING_NAME: case PA_CONTEXT_SETTING_NAME:
break;
case PA_CONTEXT_FAILED:
default: default:
pa->mainloop_api_->quit(pa->mainloop_api_, 1);
break; break;
} }
} }