From f25d26fbd90735e51e29935b3574460c3070fc81 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Mon, 27 Jun 2016 22:55:52 +0200 Subject: [PATCH] fix(mpd): Safety check --- src/modules/mpd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/mpd.cpp b/src/modules/mpd.cpp index df67cc73..873b39f9 100644 --- a/src/modules/mpd.cpp +++ b/src/modules/mpd.cpp @@ -77,7 +77,7 @@ MpdModule::~MpdModule() { std::lock_guard lck(this->update_lock); { - if (this->mpd->connected()) { + if (this->mpd && this->mpd->connected()) { try { this->mpd->disconnect(); } catch (mpd::Exception &e) {