From a42da6d33b04ca2a40c957cbb850850a54d9896f Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 8 Oct 2019 22:07:12 +0200 Subject: do not retry on exit --- netlink-notify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netlink-notify.c b/netlink-notify.c index 767f83f..4a3b373 100644 --- a/netlink-notify.c +++ b/netlink-notify.c @@ -456,7 +456,7 @@ int msg_handler (struct sockaddr_nl *nl, struct nlmsghdr *msg) { notify_notification_update(notification, TEXT_TOPIC, notifystr, icon); 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 out; } else { -- cgit v1.2.3-54-g00ecf