summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Sales de Andrade <qulogic@pidgin.im>2008-08-01 04:06:42 +0000
committerElliott Sales de Andrade <qulogic@pidgin.im>2008-08-01 04:06:42 +0000
commitc21a225648b22dbac905e51597d50f91ffd03c5c (patch)
tree444ec3cad5da80d2d655f40c623ec9ad2d47d5b4
parent9b029c29bcd23a688736daaa0eb544a28fa5970d (diff)
downloadpidgin-c21a225648b22dbac905e51597d50f91ffd03c5c.tar.gz
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.
-rw-r--r--libpurple/protocols/msn/servconn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libpurple/protocols/msn/servconn.c b/libpurple/protocols/msn/servconn.c
index f134dd3f6b..96a164f391 100644
--- a/libpurple/protocols/msn/servconn.c
+++ b/libpurple/protocols/msn/servconn.c
@@ -391,7 +391,8 @@ read_cb(gpointer data, gint source, PurpleInputCondition cond)
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;