aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2019-10-10 09:29:13 +0200
committerChristian Hesse <mail@eworm.de>2019-10-10 09:29:13 +0200
commite43f979227f0be7df371ed56764b9555b31a505f (patch)
tree90cee78f3da25381562021102b84aee5d629562b
parentdrop retry code, just fail and let the service restart (diff)
downloadmpd-notification-e43f979227f0be7df371ed56764b9555b31a505f.tar.gz
mpd-notification-e43f979227f0be7df371ed56764b9555b31a505f.tar.bz2
mpd-notification-e43f979227f0be7df371ed56764b9555b31a505f.tar.xz
mpd-notification-e43f979227f0be7df371ed56764b9555b31a505f.tar.zst
mpd-notification-e43f979227f0be7df371ed56764b9555b31a505f.zip
this is condition, not loop
-rw-r--r--mpd-notification.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpd-notification.c b/mpd-notification.c
index 9796a7d..2ba710f 100644
--- a/mpd-notification.c
+++ b/mpd-notification.c
@@ -482,7 +482,7 @@ int main(int argc, char ** argv) {
/* Call this unconditionally! When pixbuf is NULL this clears old image. */
notify_notification_set_image_from_pixbuf(notification, pixbuf);
- 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);