Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
14113:8ca0e500da4c | 14114:7795753a7af6 |
---|---|
117 */ | 117 */ |
118 } | 118 } |
119 | 119 |
120 /* the callback function after socket is built | 120 /* the callback function after socket is built |
121 * we setup the qq protocol related configuration here */ | 121 * we setup the qq protocol related configuration here */ |
122 static void _qq_got_login(gpointer data, gint source) | 122 static void _qq_got_login(gpointer data, gint source, const gchar *error_message) |
123 { | 123 { |
124 qq_data *qd; | 124 qq_data *qd; |
125 GaimConnection *gc; | 125 GaimConnection *gc; |
126 gchar *buf; | 126 gchar *buf; |
127 const gchar *passwd; | 127 const gchar *passwd; |
128 | 128 |
129 gc = (GaimConnection *) data; | 129 gc = (GaimConnection *) data; |
130 g_return_if_fail(gc != NULL && gc->proto_data != NULL); | 130 |
131 | 131 if (!GAIM_CONNECTION_IS_VALID(gc)) { |
132 if (g_list_find(gaim_connections_get_all(), gc) == NULL) { | |
133 close(source); | 132 close(source); |
134 return; | 133 return; |
135 } | 134 } |
135 | |
136 g_return_if_fail(gc != NULL && gc->proto_data != NULL); | |
136 | 137 |
137 if (source < 0) { /* socket returns -1 */ | 138 if (source < 0) { /* socket returns -1 */ |
138 gaim_connection_error(gc, _("Unable to connect.")); | 139 gaim_connection_error(gc, _("Unable to connect.")); |
139 return; | 140 return; |
140 } | 141 } |