refactor: destroy pulse-instance if pipewire is detected

This commit is contained in:
Curve 2021-06-18 22:06:55 +02:00
parent a7c0a17fe1
commit 74e01b772c
No known key found for this signature in database
GPG Key ID: 460F6C466BD35813

View File

@ -23,6 +23,9 @@ namespace Soundux::Objects
{
backend = Enums::BackendType::PipeWire;
Globals::gSettings.audioBackend = backend;
pulseInstance->destroy();
pulseInstance.reset();
}
else
{