aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-10-08 22:07:12 +0200
committerGravatar Christian Hesse <mail@eworm.de>2019-10-08 22:07:12 +0200
commita42da6d33b04ca2a40c957cbb850850a54d9896f (patch)
tree9dcc438031e8dc015f87f71ac0ee262cf97ca13a
parentaee07f1dba58a99c3933e196f5c37fa1d3ddba9e (diff)
downloadnetlink-notify-a42da6d33b04ca2a40c957cbb850850a54d9896f.tar.gz
netlink-notify-a42da6d33b04ca2a40c957cbb850850a54d9896f.tar.zst
do not retry on exit
-rw-r--r--netlink-notify.c2
1 files changed, 1 insertions, 1 deletions
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 {