Mercurial > pidgin.yaz
diff src/protocols/msn/httpmethod.c @ 9193:502707ca1836
[gaim-migrate @ 9988]
Patch by Felipe Contreras to add MSN file transfer and buddy icons. Please
test and report any bugs!
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 06 Jun 2004 02:39:08 +0000 |
parents | c30d81b4dd22 |
children | ab6636c5a136 |
line wrap: on
line diff
--- a/src/protocols/msn/httpmethod.c Sun Jun 06 02:16:08 2004 +0000 +++ b/src/protocols/msn/httpmethod.c Sun Jun 06 02:39:08 2004 +0000 @@ -48,24 +48,32 @@ static gboolean http_poll(gpointer data) { - MsnSession *session = data; - MsnServConn *servconn; + MsnSession *session; GList *l; - for (l = session->servconns; l != NULL; l = l->next) + session = data; + + for (l = session->switches; l != NULL; l = l->next) { - servconn = (MsnServConn *)l->data; + MsnSwitchBoard *swboard; + + swboard = l->data; - if (servconn->http_data->dirty) + g_return_val_if_fail(swboard->servconn->http_data != NULL, FALSE); + + if (swboard->servconn->http_data->dirty) { #if 0 gaim_debug_info("msn", "Polling server %s.\n", servconn->http_data->gateway_host); #endif - msn_http_servconn_poll(servconn); + msn_http_servconn_poll(swboard->servconn); } } + if (session->notification->servconn->http_data->dirty) + msn_http_servconn_poll(session->notification->servconn); + return TRUE; }