diff libpurple/protocols/simple/simple.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 5295c7f113da
children b13bb5f49ecd
line wrap: on
line diff
--- a/libpurple/protocols/simple/simple.c	Thu Jan 17 21:08:20 2008 +0000
+++ b/libpurple/protocols/simple/simple.c	Wed Jan 23 23:28:38 2008 +0000
@@ -1675,7 +1675,7 @@
 		if(sip->fd == source) sip->fd = -1;
 		return;
 	}
-
+	gc->last_received = time(NULL);
 	conn->inbufused += len;
 	conn->inbuf[conn->inbufused] = '\0';