changeset 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 96dffe08f3f7
children f3d11c84cc03
files ChangeLog libpurple/protocols/oscar/flap_connection.c libpurple/protocols/oscar/oscar.c
diffstat 3 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Mar 08 02:27:47 2011 +0000
+++ b/ChangeLog	Wed Mar 09 08:38:41 2011 +0000
@@ -18,6 +18,8 @@
 	AIM:
 	* Fix a bug where some buddies from your buddy list might not show up.
 	  Affected non-English ICQ users the most. (#13386)
+	* Send keepalives for all types of network connections.  Will hopefully
+	  make chat rooms more reliable. (#1449)
 
 	MSN:
 	* Fix bug that prevented added buddies to your buddy list in certain
--- a/libpurple/protocols/oscar/flap_connection.c	Tue Mar 08 02:27:47 2011 +0000
+++ b/libpurple/protocols/oscar/flap_connection.c	Wed Mar 09 08:38:41 2011 +0000
@@ -208,7 +208,7 @@
  * @param data The optional bytestream that makes up the data portion
  *        of this SNAC.  For empty SNACs this should be NULL.
  * @param high_priority If TRUE, the SNAC will be queued normally if
- *        needed. If FALSE, it wil be queued separately, to be sent
+ *        needed. If FALSE, it will be queued separately, to be sent
  *        only if all high priority SNACs have been sent.
  */
 void
--- 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