pidgin: 34b47d77: Update MSN's last_received time when we ...
qulogic at pidgin.im
qulogic at pidgin.im
Fri Aug 1 01:20:43 EDT 2008
-----------------------------------------------------------------
Revision: 34b47d7799f6c19a4e88fae539cec7821d69207e
Ancestor: a22b2ccfeee3fec1e5cc6211d5ccf7770a3b2141
Author: qulogic at pidgin.im
Date: 2008-08-01T04:06:42
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/34b47d7799f6c19a4e88fae539cec7821d69207e
Modified files:
libpurple/protocols/msn/servconn.c
ChangeLog:
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.
-------------- next part --------------
============================================================
--- libpurple/protocols/msn/servconn.c 8b4fc9d18380fc56b1caf6a00f6dbeb0d883703a
+++ libpurple/protocols/msn/servconn.c 82fd89eefcc78bf5310ca6055a7d6b718584d4f9
@@ -391,7 +391,8 @@ read_cb(gpointer data, gint source, Purp
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;
More information about the Commits
mailing list