Mercurial > pidgin
diff libpurple/protocols/msnp9/servconn.c @ 22149:252b96b6a32c
Don't send keep-alives if we've received data since in the last KEEPALIVE_INTERVAL seconds
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Wed, 23 Jan 2008 23:28:38 +0000 |
parents | d5e8ee52ddcc |
children | af2cfc9a42b3 |
line wrap: on
line diff
--- a/libpurple/protocols/msnp9/servconn.c Thu Jan 17 21:08:20 2008 +0000 +++ b/libpurple/protocols/msnp9/servconn.c Wed Jan 23 23:28:38 2008 +0000 @@ -387,6 +387,7 @@ session = servconn->session; len = read(servconn->fd, buf, sizeof(buf) - 1); + servconn->session->account->gc->last_received = time(NULL); if (len < 0 && errno == EAGAIN) return;