Mercurial > pidgin
comparison libpurple/protocols/oscar/flap_connection.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 | 38cc722159ff |
children | 6419554aadd9 |
comparison
equal
deleted
inserted
replaced
22148:80e5eaa8f580 | 22149:252b96b6a32c |
---|---|
815 /* Error! */ | 815 /* Error! */ |
816 flap_connection_schedule_destroy(conn, | 816 flap_connection_schedule_destroy(conn, |
817 OSCAR_DISCONNECT_LOST_CONNECTION, g_strerror(errno)); | 817 OSCAR_DISCONNECT_LOST_CONNECTION, g_strerror(errno)); |
818 break; | 818 break; |
819 } | 819 } |
820 conn->od->gc->last_received = time(NULL); | |
820 | 821 |
821 /* If we don't even have a complete FLAP header then do nothing */ | 822 /* If we don't even have a complete FLAP header then do nothing */ |
822 conn->header_received += read; | 823 conn->header_received += read; |
823 if (conn->header_received < 6) | 824 if (conn->header_received < 6) |
824 break; | 825 break; |