From 3a18cfea589f4b024fdca63820a8e2cde0affa75 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 10 Oct 2019 09:28:02 +0200 Subject: this is condition, not loop --- netlink-notify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-54-g00ecf