From: <dat...@us...> - 2006-09-09 19:41:50
|
Revision: 17202 http://svn.sourceforge.net/gaim/?rev=17202&view=rev Author: datallah Date: 2006-09-09 12:41:34 -0700 (Sat, 09 Sep 2006) Log Message: ----------- Don't register the connection keepalive timer if the prpl doesn't support keepalives Modified Paths: -------------- trunk/libgaim/connection.c Modified: trunk/libgaim/connection.c =================================================================== --- trunk/libgaim/connection.c 2006-09-09 19:39:31 UTC (rev 17201) +++ trunk/libgaim/connection.c 2006-09-09 19:41:34 UTC (rev 17202) @@ -61,6 +61,14 @@ static void update_keepalive(GaimConnection *gc, gboolean on) { + GaimPluginProtocolInfo *prpl_info = NULL; + + if (gc != NULL && gc->prpl != NULL) + prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); + + if (!prpl_info || !prpl_info->keepalive) + return; + if (on && !gc->keepalive) { gaim_debug_info("connection", "Activating keepalive.\n"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |