Prevent crash if DBus connection is NULL

Fixes #1307
This commit is contained in:
Calvin Lee 2017-08-12 12:48:15 +02:00
parent 2689238058
commit ba6224f4e5

View file

@ -138,7 +138,7 @@ static void dispatch_status(DBusConnection *connection, DBusDispatchStatus new_s
/* Public functions below */
void dispatch_dbus() {
if (!should_dispatch) {
if (!should_dispatch || !conn) {
return;
}