commit 1b9ee85bc526f5bdbf0a7f786e88ffdbceaadd8f
parent 2689238058fcbeebc4a6b2b224fca39ca48f2ded
Author: Drew DeVault <sir@cmpwn.com>
Date: Sat, 12 Aug 2017 08:18:30 -0400
Merge pull request #1316 from 4e554c4c/swaybar_crash
Prevent crash if DBus connection is NULL
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/swaybar/tray/dbus.c b/swaybar/tray/dbus.c
@@ -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;
}