mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
pulseaudio: disconnect on destruction
This commit is contained in:
parent
5da45ece9d
commit
35254ee834
@ -36,6 +36,7 @@ waybar::modules::Pulseaudio::Pulseaudio(const std::string &id, const Json::Value
|
|||||||
}
|
}
|
||||||
|
|
||||||
waybar::modules::Pulseaudio::~Pulseaudio() {
|
waybar::modules::Pulseaudio::~Pulseaudio() {
|
||||||
|
pa_context_disconnect(context_);
|
||||||
mainloop_api_->quit(mainloop_api_, 0);
|
mainloop_api_->quit(mainloop_api_, 0);
|
||||||
pa_threaded_mainloop_stop(mainloop_);
|
pa_threaded_mainloop_stop(mainloop_);
|
||||||
pa_threaded_mainloop_free(mainloop_);
|
pa_threaded_mainloop_free(mainloop_);
|
||||||
|
Loading…
Reference in New Issue
Block a user