Prevent crash if DBus connection is NULL

Fixes #1307
master
Calvin Lee 7 years ago
parent 2689238058
commit ba6224f4e5

@ -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;
}

Loading…
Cancel
Save