Mercurial > pidgin
comparison plugins/autorecon.c @ 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 | e7524f4b4ed2 |
children | b248c1f4efbd |
comparison
equal
deleted
inserted
replaced
8248:fabcfd9a7c1c | 8249:b51ed4506180 |
---|---|
49 if (!gc->wants_to_die) { | 49 if (!gc->wants_to_die) { |
50 if (info == NULL) { | 50 if (info == NULL) { |
51 info = g_new0(GaimAutoRecon, 1); | 51 info = g_new0(GaimAutoRecon, 1); |
52 g_hash_table_insert(hash, account, info); | 52 g_hash_table_insert(hash, account, info); |
53 info->delay = INITIAL; | 53 info->delay = INITIAL; |
54 } else | 54 } else { |
55 info->delay = MIN(2 * info->delay, MAXTIME); | 55 info->delay = MIN(2 * info->delay, MAXTIME); |
56 } | |
57 if (info->timeout != 0) | |
58 g_source_remove(info->timeout); | |
56 info->timeout = g_timeout_add(info->delay, do_signon, account); | 59 info->timeout = g_timeout_add(info->delay, do_signon, account); |
57 } else if (info != NULL) { | 60 } else if (info != NULL) { |
58 g_hash_table_remove(hash, account); | 61 g_hash_table_remove(hash, account); |
59 } | 62 } |
60 } | 63 } |