From a07925971bef1da821260068e1ba9dc3c244fe28 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 8 Oct 2019 22:09:39 +0200 Subject: do not retry on exit --- mpd-notification.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3-54-g00ecf