src/gtkconn.c

changeset 13375
5ce3cb98de9f
parent 13129
c0aa6063a2cc
child 13542
3b452b7fc7c3
equal deleted inserted replaced
13374:e5da5325b1fa 13375:5ce3cb98de9f
124 static gboolean 124 static gboolean
125 do_signon(gpointer data) 125 do_signon(gpointer data)
126 { 126 {
127 GaimAccount *account = data; 127 GaimAccount *account = data;
128 GaimAutoRecon *info; 128 GaimAutoRecon *info;
129 GaimStatus *status;
129 130
130 gaim_debug_info("autorecon", "do_signon called\n"); 131 gaim_debug_info("autorecon", "do_signon called\n");
131 g_return_val_if_fail(account != NULL, FALSE); 132 g_return_val_if_fail(account != NULL, FALSE);
132 info = g_hash_table_lookup(hash, account); 133 info = g_hash_table_lookup(hash, account);
133 134
134 if (info) 135 if (info)
135 info->timeout = 0; 136 info->timeout = 0;
136 137
137 gaim_debug_info("autorecon", "calling gaim_account_connect\n"); 138 status = gaim_account_get_active_status(account);
138 gaim_account_connect(account); 139 if (gaim_status_is_online(status))
139 gaim_debug_info("autorecon", "done calling gaim_account_connect\n"); 140 {
141 gaim_debug_info("autorecon", "calling gaim_account_connect\n");
142 gaim_account_connect(account);
143 gaim_debug_info("autorecon", "done calling gaim_account_connect\n");
144 }
140 145
141 return FALSE; 146 return FALSE;
142 } 147 }
143 148
144 static void 149 static void

mercurial