aboutsummaryrefslogtreecommitdiffstats
path: root/mpd-notification.c
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-10-08 22:09:39 +0200
committerGravatar Christian Hesse <mail@eworm.de>2019-10-08 22:09:39 +0200
commita07925971bef1da821260068e1ba9dc3c244fe28 (patch)
treea9a6c98fb5add5ae27ada50bd5c7a9e540c5877a /mpd-notification.c
parenta7747a3ad3b3f07a2465d64027a923e7709a117f (diff)
downloadmpd-notification-a07925971bef1da821260068e1ba9dc3c244fe28.tar.gz
mpd-notification-a07925971bef1da821260068e1ba9dc3c244fe28.tar.zst
do not retry on exit
Diffstat (limited to 'mpd-notification.c')
-rw-r--r--mpd-notification.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpd-notification.c b/mpd-notification.c
index a946324..f0d27b4 100644
--- a/mpd-notification.c
+++ b/mpd-notification.c
@@ -484,7 +484,7 @@ int main(int argc, char ** argv) {
notify_notification_set_image_from_pixbuf(notification, pixbuf);
while(notify_notification_show(notification, &error) == FALSE) {
- if (errcount > 1) {
+ if (errcount > 1 || doexit) {
fprintf(stderr, "%s: Looks like we can not reconnect to notification daemon... Exiting.\n", program);
goto out10;
} else {