send_keepalive needs to return TRUE to ensure it'll get called again, and

Fri, 25 Jan 2008 13:48:24 +0000

author
Stu Tomlinson <nosnilmot@pidgin.im>
date
Fri, 25 Jan 2008 13:48:24 +0000
changeset 22324
ca786d5fa291
parent 22323
ef5a1f7861b4
child 22325
97b41d369574
child 22331
3f7b58b029b4

send_keepalive needs to return TRUE to ensure it'll get called again, and
avoid compile warnings

libpurple/connection.c file | annotate | diff | comparison | revisions
--- a/libpurple/connection.c	Fri Jan 25 13:46:55 2008 +0000
+++ b/libpurple/connection.c	Fri Jan 25 13:48:24 2008 +0000
@@ -53,16 +53,16 @@
 	PurplePluginProtocolInfo *prpl_info = NULL;
 
 	if (gc == NULL)
-		return;
+		return TRUE;
 
 	/* Only send keep-alives if we haven't heard from the
- 	 * server in a while.
- 	 */
+	 * server in a while.
+	 */
 	if ((time(NULL) - gc->last_received) < KEEPALIVE_INTERVAL)
-		return;
+		return TRUE;
 
 	if (gc->prpl == NULL)
-		return;
+		return TRUE;
 
 	prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(gc->prpl);
 

mercurial