summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-10-10 09:28:02 +0200
committerGravatar Christian Hesse <mail@eworm.de>2019-10-10 09:28:02 +0200
commit3a18cfea589f4b024fdca63820a8e2cde0affa75 (patch)
tree6996163580660dc77d6a883e13e2ed5c9bffc2db
parentef038c81dc420f137e95d91c5bf1a1f13924b168 (diff)
downloadnetlink-notify-3a18cfea589f4b024fdca63820a8e2cde0affa75.tar.gz
netlink-notify-3a18cfea589f4b024fdca63820a8e2cde0affa75.tar.zst
this is condition, not loop
-rw-r--r--netlink-notify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/netlink-notify.c b/netlink-notify.c
index 2fc5ac7..1dd5ed3 100644
--- a/netlink-notify.c
+++ b/netlink-notify.c
@@ -454,7 +454,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 (notify_notification_show(notification, &error) == FALSE) {
g_printerr("%s: Error showing notification: %s\n", program, error->message);
g_error_free(error);