Merge pull request #1316 from 4e554c4c/swaybar_crash

Prevent crash if DBus connection is NULL
This commit is contained in:
Drew DeVault 2017-08-12 08:18:30 -04:00 committed by GitHub
commit 1b9ee85bc5

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