diff options
author | Christian Hesse <mail@eworm.de> | 2019-10-08 22:07:12 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-10-08 22:07:12 +0200 |
commit | a42da6d33b04ca2a40c957cbb850850a54d9896f (patch) | |
tree | 9dcc438031e8dc015f87f71ac0ee262cf97ca13a | |
parent | aee07f1dba58a99c3933e196f5c37fa1d3ddba9e (diff) | |
download | netlink-notify-a42da6d33b04ca2a40c957cbb850850a54d9896f.tar.gz netlink-notify-a42da6d33b04ca2a40c957cbb850850a54d9896f.tar.zst |
do not retry on exit
-rw-r--r-- | netlink-notify.c | 2 |
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 { |