gaim/gaim

d1622360b519
Parents 297d897a8bd9
Children 7eae8e752991
If we've reconnected, remove the account from the hash table of
disconnected accounts to ensure subsequent reconnections start with the
initial delay instead of initial * 2
--- a/plugins/autorecon.c Wed May 25 23:28:53 2005 -0400
+++ b/plugins/autorecon.c Thu May 26 08:15:03 2005 -0400
@@ -142,6 +142,7 @@
GaimAccount *account;
GaimAutoRecon *recon;
+ g_return_if_fail(gc != NULL);
account = gaim_connection_get_account(gc);
/* only restore the state if the user says so */
@@ -151,10 +152,8 @@
serv_set_away(gc, state->state, state->message);
}
- /* we reconnected, reset the delay */
- recon = g_hash_table_lookup(hash, account);
- if(recon)
- recon->delay = INITIAL;
+ /* we reconnected, remove from the hash table of disconnected accounts */
+ g_hash_table_remove(hash, account);
}
static void