comparison libpurple/protocols/msn/servconn.c @ 23672:24f6212d1996

Update MSN's last_received time when we receive something on the NS only. The default keepalive timeout is 30 seconds, which is shorter than what the MSN server usually requests, so it should still be OK. gc->last_received only seems to be used for the keepalive timer, so I don't think I broke anything. Should fix #6342, I think.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Fri, 01 Aug 2008 04:06:42 +0000
parents af2cfc9a42b3
children d3262085b7a7
comparison
equal deleted inserted replaced
23671:96e78c0fa32b 23672:24f6212d1996
389 389
390 servconn = data; 390 servconn = data;
391 session = servconn->session; 391 session = servconn->session;
392 392
393 len = read(servconn->fd, buf, sizeof(buf) - 1); 393 len = read(servconn->fd, buf, sizeof(buf) - 1);
394 servconn->session->account->gc->last_received = time(NULL); 394 if (servconn->type == MSN_SERVCONN_NS)
395 servconn->session->account->gc->last_received = time(NULL);
395 396
396 if (len < 0 && errno == EAGAIN) { 397 if (len < 0 && errno == EAGAIN) {
397 return; 398 return;
398 399
399 } else if (len <= 0) { 400 } else if (len <= 0) {