changeset 8249:b51ed4506180

[gaim-migrate @ 8972] Fix the autorecon thing the correct way committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 12 Feb 2004 23:51:39 +0000
parents fabcfd9a7c1c
children b248c1f4efbd
files plugins/autorecon.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/autorecon.c	Thu Feb 12 23:41:04 2004 +0000
+++ b/plugins/autorecon.c	Thu Feb 12 23:51:39 2004 +0000
@@ -51,8 +51,11 @@
 			info = g_new0(GaimAutoRecon, 1);
 			g_hash_table_insert(hash, account, info);
 			info->delay = INITIAL;
-		} else
+		} else {
 			info->delay = MIN(2 * info->delay, MAXTIME);
+		}
+		if (info->timeout != 0)
+			g_source_remove(info->timeout);
 		info->timeout = g_timeout_add(info->delay, do_signon, account);
 	} else if (info != NULL) {
 		g_hash_table_remove(hash, account);