Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/servconn.c @ 32768:50cd80d3554e
Add a purple_connection_update_last_received() function to update the
PurpleConnection->last_received value.
author | andrew.victor@mxit.com |
---|---|
date | Tue, 18 Oct 2011 20:25:41 +0000 |
parents | 10e5000326a5 |
children |
comparison
equal
deleted
inserted
replaced
32767:2ec94166be43 | 32768:50cd80d3554e |
---|---|
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 PurpleConnection *gc = purple_account_get_connection(servconn->session->account); | 425 PurpleConnection *gc = purple_account_get_connection(servconn->session->account); |
426 gc->last_received = time(NULL); | 426 purple_connection_update_last_received(gc); |
427 } | 427 } |
428 | 428 |
429 len = read(servconn->fd, buf, sizeof(buf) - 1); | 429 len = read(servconn->fd, buf, sizeof(buf) - 1); |
430 if (len < 0 && errno == EAGAIN) | 430 if (len < 0 && errno == EAGAIN) |
431 return; | 431 return; |