Skip to content

Commit

Permalink
Merge pull request #1316 from 4e554c4c/swaybar_crash
Browse files Browse the repository at this point in the history
Prevent crash if DBus connection is NULL
  • Loading branch information
ddevault authored Aug 12, 2017
2 parents 2689238 + ba6224f commit 1b9ee85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swaybar/tray/dbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1b9ee85

Please sign in to comment.