diff libpurple/connection.c @ 22202:fbdf8136c98c

send_keepalive needs to return TRUE to ensure it'll get called again, and avoid compile warnings
author Stu Tomlinson <stu@nosnilmot.com>
date Fri, 25 Jan 2008 13:48:24 +0000
parents 252b96b6a32c
children 2b426862ffbf
line wrap: on
line diff
--- 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);