Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/httpconn.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 | 1a2840d2cd02 |
children |
comparison
equal
deleted
inserted
replaced
32767:2ec94166be43 | 32768:50cd80d3554e |
---|---|
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 PurpleConnection *gc = purple_account_get_connection(servconn->session->account); | 289 PurpleConnection *gc = purple_account_get_connection(servconn->session->account); |
290 gc->last_received = time(NULL); | 290 purple_connection_update_last_received(gc); |
291 } | 291 } |
292 | 292 |
293 len = read(httpconn->fd, buf, sizeof(buf) - 1); | 293 len = read(httpconn->fd, buf, sizeof(buf) - 1); |
294 if (len < 0 && errno == EAGAIN) | 294 if (len < 0 && errno == EAGAIN) |
295 return; | 295 return; |