Mercurial > pidgin
diff src/protocols/qq/qq_proxy.c @ 14114:7795753a7af6
[gaim-migrate @ 16748]
I really don't feel like changing qq right now
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Mon, 14 Aug 2006 07:23:11 +0000 |
| parents | 7a205b430d19 |
| children | 8ea1929c4c69 |
line wrap: on
line diff
--- a/src/protocols/qq/qq_proxy.c Mon Aug 14 07:18:58 2006 +0000 +++ b/src/protocols/qq/qq_proxy.c Mon Aug 14 07:23:11 2006 +0000 @@ -119,7 +119,7 @@ /* the callback function after socket is built * we setup the qq protocol related configuration here */ -static void _qq_got_login(gpointer data, gint source) +static void _qq_got_login(gpointer data, gint source, const gchar *error_message) { qq_data *qd; GaimConnection *gc; @@ -127,13 +127,14 @@ const gchar *passwd; gc = (GaimConnection *) data; - g_return_if_fail(gc != NULL && gc->proto_data != NULL); - if (g_list_find(gaim_connections_get_all(), gc) == NULL) { + if (!GAIM_CONNECTION_IS_VALID(gc)) { close(source); return; } + g_return_if_fail(gc != NULL && gc->proto_data != NULL); + if (source < 0) { /* socket returns -1 */ gaim_connection_error(gc, _("Unable to connect.")); return;
