diff plugins/autorecon.c @ 8250:b248c1f4efbd

[gaim-migrate @ 8973] 1) Minor changes to the network listen code again. Tim, let me know if you have any other suggestions. 2) Changed how charsets are handled in oscar a tad bit. I think this should guarantee that Gaim doesn't crash when people send funky messages, or have funky away messages or really anything that is using a charset that isn't utf8, iso-8859-1, ucs-2be, or ascii. Ethan, this should fix the problem with that person's away message. Although, the message itself still looks kinda funky to me. The encoding is Windows-31J, which is apparently a valid iconv encoding? You would know more than I. 3) Fix the following crash: 1. IM yourself a message on AIM 2. Do NOT begin to type a second message, but instead hit CTRL+up committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 13 Feb 2004 05:37:12 +0000
parents b51ed4506180
children d7b8eb1f0a18
line wrap: on
line diff
--- a/plugins/autorecon.c	Thu Feb 12 23:51:39 2004 +0000
+++ b/plugins/autorecon.c	Fri Feb 13 05:37:12 2004 +0000
@@ -53,9 +53,9 @@
 			info->delay = INITIAL;
 		} else {
 			info->delay = MIN(2 * info->delay, MAXTIME);
+			if (info->timeout != 0)
+				g_source_remove(info->timeout);
 		}
-		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);