changeset 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 393c639dd021
children 7f2e38467781 a0d3cabfdee0
files libpurple/connection.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
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);