comparison libpurple/protocols/msn/httpconn.c @ 32827:4a34689eeb33 default tip

merged from im.pidgin.pidgin
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sat, 19 Nov 2011 14:42:54 +0900
parents 50cd80d3554e
children
comparison
equal deleted inserted replaced
32692:0f94ec89f0bc 32827:4a34689eeb33
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) {