| 163 } |
163 } |
| 164 |
164 |
| 165 static void toc_login_callback(gpointer data, gint source, GdkInputCondition cond) |
165 static void toc_login_callback(gpointer data, gint source, GdkInputCondition cond) |
| 166 { |
166 { |
| 167 struct gaim_connection *gc = data; |
167 struct gaim_connection *gc = data; |
| 168 struct toc_data *tdt = gc->proto_data; |
168 struct toc_data *tdt; |
| 169 char buf[80]; |
169 char buf[80]; |
| |
170 |
| |
171 if (!g_slist_find(connections, data)) { |
| |
172 close(source); |
| |
173 return; |
| |
174 } |
| |
175 |
| |
176 tdt = gc->proto_data; |
| 170 |
177 |
| 171 if (source == -1) { |
178 if (source == -1) { |
| 172 /* we didn't successfully connect. tdt->toc_fd is valid here */ |
179 /* we didn't successfully connect. tdt->toc_fd is valid here */ |
| 173 hide_login_progress(gc, "Unable to connect."); |
180 hide_login_progress(gc, "Unable to connect."); |
| 174 signoff(gc); |
181 signoff(gc); |