comparison libpurple/protocols/oscar/flap_connection.c @ 32768:50cd80d3554e

Add a purple_connection_update_last_received() function to update the PurpleConnection->last_received value.
author andrew.victor@mxit.com
date Tue, 18 Oct 2011 20:25:41 +0000
parents a5b556ac1de5
children ec6371d4cae8
comparison
equal deleted inserted replaced
32767:2ec94166be43 32768:50cd80d3554e
919 /* Error! */ 919 /* Error! */
920 flap_connection_schedule_destroy(conn, 920 flap_connection_schedule_destroy(conn,
921 OSCAR_DISCONNECT_LOST_CONNECTION, g_strerror(errno)); 921 OSCAR_DISCONNECT_LOST_CONNECTION, g_strerror(errno));
922 break; 922 break;
923 } 923 }
924 conn->od->gc->last_received = time(NULL); 924 purple_connection_update_last_received(conn->od->gc);
925 925
926 /* If we don't even have a complete FLAP header then do nothing */ 926 /* If we don't even have a complete FLAP header then do nothing */
927 conn->header_received += read; 927 conn->header_received += read;
928 if (conn->header_received < 6) 928 if (conn->header_received < 6)
929 break; 929 break;