Mercurial > pidgin
diff libpurple/connection.c @ 21750:fb8ab2490ac4
De-magic number the prpl_info->keepalive interval, and document it.
author | Will Thompson <will.thompson@collabora.co.uk> |
---|---|
date | Mon, 03 Dec 2007 19:02:28 +0000 |
parents | 1c9f741ee9c7 |
children | da0b37abe4bd |
line wrap: on
line diff
--- a/libpurple/connection.c Mon Dec 03 16:38:38 2007 +0000 +++ b/libpurple/connection.c Mon Dec 03 19:02:28 2007 +0000 @@ -38,6 +38,8 @@ #include "signals.h" #include "util.h" +#define KEEPALIVE_INTERVAL 30 + static GList *connections = NULL; static GList *connections_connecting = NULL; static PurpleConnectionUiOps *connection_ui_ops = NULL; @@ -73,7 +75,7 @@ if (on && !gc->keepalive) { purple_debug_info("connection", "Activating keepalive.\n"); - gc->keepalive = purple_timeout_add_seconds(30, send_keepalive, gc); + gc->keepalive = purple_timeout_add_seconds(KEEPALIVE_INTERVAL, send_keepalive, gc); } else if (!on && gc->keepalive > 0) {