aboutsummaryrefslogtreecommitdiff
path: root/swaybar
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-08-12 08:18:30 -0400
committerGitHub <noreply@github.com>2017-08-12 08:18:30 -0400
commit1b9ee85bc526f5bdbf0a7f786e88ffdbceaadd8f (patch)
treea645a658b708e507abba06e9db853ed6f32b8c3f /swaybar
parent2689238058fcbeebc4a6b2b224fca39ca48f2ded (diff)
parentba6224f4e5b62ea48d37d00022d18be5ec844604 (diff)
Merge pull request #1316 from 4e554c4c/swaybar_crash
Prevent crash if DBus connection is NULL
Diffstat (limited to 'swaybar')
-rw-r--r--swaybar/tray/dbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/tray/dbus.c b/swaybar/tray/dbus.c
index f562baeb..8e719fd9 100644
--- 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;
}