Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
22148:80e5eaa8f580 | 22149:252b96b6a32c |
---|---|
1673 purple_debug_info("simple", "simple_input_cb: read error\n"); | 1673 purple_debug_info("simple", "simple_input_cb: read error\n"); |
1674 connection_remove(sip, source); | 1674 connection_remove(sip, source); |
1675 if(sip->fd == source) sip->fd = -1; | 1675 if(sip->fd == source) sip->fd = -1; |
1676 return; | 1676 return; |
1677 } | 1677 } |
1678 | 1678 gc->last_received = time(NULL); |
1679 conn->inbufused += len; | 1679 conn->inbufused += len; |
1680 conn->inbuf[conn->inbufused] = '\0'; | 1680 conn->inbuf[conn->inbufused] = '\0'; |
1681 | 1681 |
1682 process_input(sip, conn); | 1682 process_input(sip, conn); |
1683 } | 1683 } |