changeset 23627: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 96e78c0fa32b
children 7a71457cdd32
files libpurple/protocols/msn/servconn.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;