Mercurial > pidgin.yaz
changeset 14483:af856551902b
[gaim-migrate @ 17202]
Don't register the connection keepalive timer if the prpl doesn't support keepalives
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Sat, 09 Sep 2006 19:41:34 +0000 |
parents | a5c7db7be826 |
children | 1f81919515ae |
files | libgaim/connection.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libgaim/connection.c Sat Sep 09 19:39:31 2006 +0000 +++ b/libgaim/connection.c Sat Sep 09 19:41:34 2006 +0000 @@ -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");