Mercurial > pidgin.yaz
diff libpurple/protocols/oscar/oscar.c @ 31764:04576947c4e0
Send keepalives for all types of network connections. Will hopefully
make chat rooms more reliable. Fixes #1449
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 09 Mar 2011 08:38:41 +0000 |
parents | 6b2b8cc8e7ae |
children | 7281d151e492 85412e09b61b 8d6630912021 |
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oscar.c Tue Mar 08 02:27:47 2011 +0000 +++ b/libpurple/protocols/oscar/oscar.c Wed Mar 09 08:38:41 2011 +0000 @@ -3140,12 +3140,12 @@ oscar_keepalive(PurpleConnection *gc) { OscarData *od; - FlapConnection *conn; + GSList *l; od = purple_connection_get_protocol_data(gc); - conn = flap_connection_getbytype(od, SNAC_FAMILY_LOCATE); - if (conn != NULL) - flap_connection_send_keepalive(od, conn); + for (l = od->oscar_connections; l; l = l->next) { + flap_connection_send_keepalive(od, l->data); + } } unsigned int