diff options
author | Christian Hesse <mail@eworm.de> | 2019-10-10 09:28:02 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-10-10 09:28:02 +0200 |
commit | 3a18cfea589f4b024fdca63820a8e2cde0affa75 (patch) | |
tree | 6996163580660dc77d6a883e13e2ed5c9bffc2db | |
parent | ef038c81dc420f137e95d91c5bf1a1f13924b168 (diff) | |
download | netlink-notify-3a18cfea589f4b024fdca63820a8e2cde0affa75.tar.gz netlink-notify-3a18cfea589f4b024fdca63820a8e2cde0affa75.tar.zst |
this is condition, not loop
-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 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); |