Mercurial > pidgin
comparison src/gtkconn.c @ 12009:8a7553e149de
[gaim-migrate @ 14302]
This should fix a crash Ethan is seeing when his gg account fails to
sign on at startup.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 08 Nov 2005 23:44:00 +0000 |
parents | 2d98b2759fa1 |
children | f28e51bf9be8 |
comparison
equal
deleted
inserted
replaced
12008:91aaa1b3ac30 | 12009:8a7553e149de |
---|---|
134 return FALSE; | 134 return FALSE; |
135 } | 135 } |
136 | 136 |
137 static void gaim_gtk_connection_report_disconnect(GaimConnection *gc, const char *text) | 137 static void gaim_gtk_connection_report_disconnect(GaimConnection *gc, const char *text) |
138 { | 138 { |
139 GaimGtkBuddyList *list = gaim_gtk_blist_get_default_gtk_blist(); | 139 GaimGtkBuddyList *gtkblist = gaim_gtk_blist_get_default_gtk_blist(); |
140 GaimAccount *account = NULL; | 140 GaimAccount *account = NULL; |
141 GaimAutoRecon *info; | 141 GaimAutoRecon *info; |
142 GSList* listAccount; | 142 GSList* listAccount; |
143 | 143 |
144 if (hash == NULL) { | 144 if (hash == NULL) { |
151 listAccount = g_slist_find(accountReconnecting, account); | 151 listAccount = g_slist_find(accountReconnecting, account); |
152 else | 152 else |
153 listAccount = NULL; | 153 listAccount = NULL; |
154 | 154 |
155 if (!gc->wants_to_die) { | 155 if (!gc->wants_to_die) { |
156 gtk_gaim_status_box_set_error(GTK_GAIM_STATUS_BOX(list->statusbox), text); | 156 if (gtkblist != NULL) |
157 | 157 gtk_gaim_status_box_set_error(GTK_GAIM_STATUS_BOX(gtkblist->statusbox), text); |
158 if (info == NULL) { | 158 |
159 if (info == NULL) { | |
159 info = g_new0(GaimAutoRecon, 1); | 160 info = g_new0(GaimAutoRecon, 1); |
160 g_hash_table_insert(hash, account, info); | 161 g_hash_table_insert(hash, account, info); |
161 info->delay = INITIAL_RECON_DELAY; | 162 info->delay = INITIAL_RECON_DELAY; |
162 } else { | 163 } else { |
163 info->delay = MIN(2 * info->delay, MAX_RECON_DELAY); | 164 info->delay = MIN(2 * info->delay, MAX_RECON_DELAY); |