| 17 static GHashTable *hash = NULL; |
17 static GHashTable *hash = NULL; |
| 18 |
18 |
| 19 static guint tim = 0; |
19 static guint tim = 0; |
| 20 |
20 |
| 21 static gboolean do_signon(gpointer data) { |
21 static gboolean do_signon(gpointer data) { |
| 22 struct gaim_account *account = data; |
22 GaimAccount *account = data; |
| 23 gaim_debug(GAIM_DEBUG_INFO, "autorecon", "do_signon called\n"); |
23 gaim_debug(GAIM_DEBUG_INFO, "autorecon", "do_signon called\n"); |
| 24 |
24 |
| 25 if (g_slist_index(gaim_accounts, account) < 0) |
25 if (g_slist_index(gaim_accounts, account) < 0) |
| 26 return FALSE; |
26 return FALSE; |
| 27 gaim_debug(GAIM_DEBUG_INFO, "autorecon", "calling serv_login\n"); |
27 gaim_debug(GAIM_DEBUG_INFO, "autorecon", "calling gaim_account_connect\n"); |
| 28 serv_login(account); |
28 gaim_account_connect(account); |
| 29 gaim_debug(GAIM_DEBUG_INFO, "autorecon", "done calling serv_login\n"); |
29 gaim_debug(GAIM_DEBUG_INFO, "autorecon", "done calling gaim_account_connect\n"); |
| 30 tim = 0; |
30 tim = 0; |
| 31 return FALSE; |
31 return FALSE; |
| 32 } |
32 } |
| 33 |
33 |
| 34 static void reconnect(struct gaim_connection *gc, void *m) { |
34 static void reconnect(GaimConnection *gc, void *m) { |
| 35 if (!gc->wants_to_die) { |
35 if (!gc->wants_to_die) { |
| 36 int del; |
36 int del; |
| 37 del = (int)g_hash_table_lookup(hash, gc->account); |
37 del = (int)g_hash_table_lookup(hash, gc->account); |
| 38 if (!del) |
38 if (!del) |
| 39 del = INITIAL; |
39 del = INITIAL; |