comparison libpurple/protocols/msn/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 35b4f1dc4c8d
children 1c68bd1c7128
comparison
equal deleted inserted replaced
22148:80e5eaa8f580 22149:252b96b6a32c
389 389
390 servconn = data; 390 servconn = data;
391 session = servconn->session; 391 session = servconn->session;
392 392
393 len = read(servconn->fd, buf, sizeof(buf) - 1); 393 len = read(servconn->fd, buf, sizeof(buf) - 1);
394 servconn->session->account->gc->last_connected = time(NULL);
394 395
395 if (len <= 0) { 396 if (len <= 0) {
396 switch (errno) { 397 switch (errno) {
397 398
398 case 0: 399 case 0: