# HG changeset patch # User Elliott Sales de Andrade # Date 1217563602 0 # Node ID 24f6212d19960e88f148f1b8424118b01ecf20df # Parent 96e78c0fa32bd791b2949cfd45078625eaf40cdf 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. diff -r 96e78c0fa32b -r 24f6212d1996 libpurple/protocols/msn/servconn.c --- a/libpurple/protocols/msn/servconn.c Fri Aug 01 02:04:36 2008 +0000 +++ b/libpurple/protocols/msn/servconn.c Fri Aug 01 04:06:42 2008 +0000 @@ -391,7 +391,8 @@ session = servconn->session; len = read(servconn->fd, buf, sizeof(buf) - 1); - servconn->session->account->gc->last_received = time(NULL); + if (servconn->type == MSN_SERVCONN_NS) + servconn->session->account->gc->last_received = time(NULL); if (len < 0 && errno == EAGAIN) { return;