From 8734337fb5ae85de42db2feb3c5f97491fde04e2 Mon Sep 17 00:00:00 2001 From: Axel Wagner Date: Fri, 15 Jul 2011 01:31:02 +0200 Subject: [PATCH] Stop the reconn-timer before starting it again, else it's running twice --- i3bar/src/ipc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/i3bar/src/ipc.c b/i3bar/src/ipc.c index 2f5d481c..6bfbc3ec 100644 --- a/i3bar/src/ipc.c +++ b/i3bar/src/ipc.c @@ -57,6 +57,8 @@ void reconnect() { ELOG("malloc() failed: %s\n", strerror(errno)); exit(EXIT_FAILURE); } + } else { + ev_timer_stop(main_loop, reconn); } ev_timer_init(reconn, retry_connection, 0.25, 0.25); ev_timer_start(main_loop, reconn); -- 2.39.5