Mercurial > pidgin
comparison libpurple/protocols/gg/gg.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 | 665e04562de0 |
children | d3c8fd63e296 f5bcb58bdf56 |
comparison
equal
deleted
inserted
replaced
22148:80e5eaa8f580 | 22149:252b96b6a32c |
---|---|
1312 purple_connection_error_reason (gc, | 1312 purple_connection_error_reason (gc, |
1313 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, | 1313 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, |
1314 _("Unable to read socket")); | 1314 _("Unable to read socket")); |
1315 return; | 1315 return; |
1316 } | 1316 } |
1317 | 1317 gc->last_received = time(NULL); |
1318 switch (ev->type) { | 1318 switch (ev->type) { |
1319 case GG_EVENT_NONE: | 1319 case GG_EVENT_NONE: |
1320 /* Nothing happened. */ | 1320 /* Nothing happened. */ |
1321 break; | 1321 break; |
1322 case GG_EVENT_MSG: | 1322 case GG_EVENT_MSG: |