im.pidgin.pidgin: 2d7c53266140ca1f8553bb30e2b59a2f124955d2

nosnilmot at pidgin.im nosnilmot at pidgin.im
Fri Jan 25 09:01:11 EST 2008


-----------------------------------------------------------------
Revision: 2d7c53266140ca1f8553bb30e2b59a2f124955d2
Ancestor: 387d2588775830c33fb0a718273c14e2f3455d12
Author: nosnilmot at pidgin.im
Date: 2008-01-25T13:48:24
Branch: im.pidgin.pidgin

Modified files:
        libpurple/connection.c

ChangeLog: 

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

-------------- next part --------------
============================================================
--- libpurple/connection.c	01709808d302c2b71d1db45623047337cd7a2487
+++ libpurple/connection.c	5bfc801e70e2f946757923b12e3a09b05003d4be
@@ -53,16 +53,16 @@ send_keepalive(gpointer data)
 	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);
 


More information about the Commits mailing list