Updated mpris.cpp for better compatibility with older versions of libsystemd

This commit is contained in:
casey langen 2019-10-27 21:40:00 -07:00
parent 4b1960e27e
commit 013aa912cb

View File

@ -89,8 +89,8 @@ bool MPRISRemote::MPRISInit() {
} }
void MPRISRemote::MPRISDeinit() { void MPRISRemote::MPRISDeinit() {
sd_bus_close(this->bus);
sd_bus_close_unref(this->bus); sd_bus_unref(this->bus);
bus = NULL; bus = NULL;
stop_processing = true; stop_processing = true;
if (thread) { if (thread) {