comparison libpurple/protocols/msn/httpconn.c @ 32819:2c6510167895 default tip

propagate from branch 'im.pidgin.pidgin.2.x.y' (head 3315c5dfbd0ad16511bdcf865e5b07c02d07df24) to branch 'im.pidgin.pidgin' (head cbd1eda6bcbf0565ae7766396bb8f6f419cb6a9a)
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 02 Jun 2012 02:30:49 +0000
parents 50cd80d3554e
children
comparison
equal deleted inserted replaced
32818:01ff09d4a463 32819:2c6510167895
283 gboolean error = FALSE; 283 gboolean error = FALSE;
284 284
285 httpconn = data; 285 httpconn = data;
286 servconn = httpconn->servconn; 286 servconn = httpconn->servconn;
287 287
288 if (servconn->type == MSN_SERVCONN_NS) 288 if (servconn->type == MSN_SERVCONN_NS) {
289 servconn->session->account->gc->last_received = time(NULL); 289 PurpleConnection *gc = purple_account_get_connection(servconn->session->account);
290 purple_connection_update_last_received(gc);
291 }
290 292
291 len = read(httpconn->fd, buf, sizeof(buf) - 1); 293 len = read(httpconn->fd, buf, sizeof(buf) - 1);
292 if (len < 0 && errno == EAGAIN) 294 if (len < 0 && errno == EAGAIN)
293 return; 295 return;
294 if (len <= 0) { 296 if (len <= 0) {