about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-01-26 19:54:57 +0000
committerJames Booth <boothj5@gmail.com>2013-01-26 19:54:57 +0000
commitc03a936789569d362ff41a3a6f56732de0267ec6 (patch)
treedea5e14f4962796b112b0d797e95e6fa35a94fb9
parentbbdc34132583cd8a174869cdb55b82c8c05aeb45 (diff)
downloadprofani-tty-c03a936789569d362ff41a3a6f56732de0267ec6.tar.gz
Fixed big in autreconnect, reset timer on each connection attempt
-rw-r--r--src/connection.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/connection.c b/src/connection.c
index 27b8bb43..226a00f0 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -190,6 +190,7 @@ jabber_process_events(void)
             if (g_timer_elapsed(reconnect_timer, NULL) > prefs_get_reconnect()) {
                 log_debug("Attempting reconnect as %s", saved_user.jid);
                 jabber_connect(saved_user.jid, saved_user.passwd, saved_user.altdomain);
+                g_timer_start(reconnect_timer);
             }
         }
     }