comparison libpurple/protocols/msn/servconn.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 230caecf5435
children
comparison
equal deleted inserted replaced
32671:0e69949b3e61 32672:3828a61c44da
419 char buf[MSN_BUF_LEN]; 419 char buf[MSN_BUF_LEN];
420 gssize len; 420 gssize len;
421 421
422 servconn = data; 422 servconn = data;
423 423
424 if (servconn->type == MSN_SERVCONN_NS) 424 if (servconn->type == MSN_SERVCONN_NS) {
425 servconn->session->account->gc->last_received = time(NULL); 425 PurpleConnection *gc = purple_account_get_connection(servconn->session->account);
426 purple_connection_update_last_received(gc);
427 }
426 428
427 len = read(servconn->fd, buf, sizeof(buf) - 1); 429 len = read(servconn->fd, buf, sizeof(buf) - 1);
428 if (len < 0 && errno == EAGAIN) 430 if (len < 0 && errno == EAGAIN)
429 return; 431 return;
430 if (len <= 0) { 432 if (len <= 0) {