diff options
author | Elliott Sales de Andrade <qulogic@pidgin.im> | 2008-08-01 04:06:42 +0000 |
---|---|---|
committer | Elliott Sales de Andrade <qulogic@pidgin.im> | 2008-08-01 04:06:42 +0000 |
commit | c21a225648b22dbac905e51597d50f91ffd03c5c (patch) | |
tree | 444ec3cad5da80d2d655f40c623ec9ad2d47d5b4 | |
parent | 9b029c29bcd23a688736daaa0eb544a28fa5970d (diff) | |
download | pidgin-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.c | 3 |
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; |