# HG changeset patch # User Mark Doliner # Date 1155540191 0 # Node ID 7795753a7af69c64036811d805f6a42c01a36069 # Parent 8ca0e500da4c9fdbcac66255d2b8825d8d19d7ab [gaim-migrate @ 16748] I really don't feel like changing qq right now committer: Tailor Script diff -r 8ca0e500da4c -r 7795753a7af6 src/protocols/qq/qq_proxy.c --- 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;