aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/notify.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/notify.c b/src/notify.c
index be88a31..3e14022 100644
--- a/src/notify.c
+++ b/src/notify.c
@@ -549,6 +549,9 @@ int notify_same_recur_item(struct recur_apoint *i)
/* Launch the notify-bar main thread. */
void notify_start_main_thread(void)
{
+ /* Avoid starting the notification bar thread twice. */
+ notify_stop_main_thread();
+
pthread_create(&notify_t_main, NULL, notify_main_thread, NULL);
notify_check_next_app(0);
}