comparison libpurple/protocols/msn/httpconn.c @ 32672:3828a61c44da

A boring and large patch so I can merge heads.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Fri, 23 Dec 2011 08:21:58 +0000
parents b6955681b7b3
children
comparison
equal deleted inserted replaced
32671:0e69949b3e61 32672:3828a61c44da
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) {