aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2019-10-08 22:09:39 +0200
committerChristian Hesse <mail@eworm.de>2019-10-08 22:09:39 +0200
commita07925971bef1da821260068e1ba9dc3c244fe28 (patch)
treea9a6c98fb5add5ae27ada50bd5c7a9e540c5877a
parentorder systemd service after notification daemons (diff)
downloadmpd-notification-a07925971bef1da821260068e1ba9dc3c244fe28.tar.gz
mpd-notification-a07925971bef1da821260068e1ba9dc3c244fe28.tar.bz2
mpd-notification-a07925971bef1da821260068e1ba9dc3c244fe28.tar.xz
mpd-notification-a07925971bef1da821260068e1ba9dc3c244fe28.tar.zst
mpd-notification-a07925971bef1da821260068e1ba9dc3c244fe28.zip
do not retry on exit
-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 {