# HG changeset patch # User Stu Tomlinson # Date 1201268904 0 # Node ID fbdf8136c98c3fccc94388a14a0dce73ac1bb155 # Parent 393c639dd021e23e4cc0f55dc5731e371e97fe2c send_keepalive needs to return TRUE to ensure it'll get called again, and avoid compile warnings diff -r 393c639dd021 -r fbdf8136c98c libpurple/connection.c --- 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);