Revision: 16571
Author: seanegan
Date: 2006-07-25 10:00:51 -0700 (Tue, 25 Jul 2006)
ViewCVS: http://svn.sourceforge.net/gaim/?rev=16571&view=rev
Log Message:
-----------
Backport
Modified Paths:
--------------
branches/v2_0_0/src/gtkconn.c
Modified: branches/v2_0_0/src/gtkconn.c
===================================================================
--- branches/v2_0_0/src/gtkconn.c 2006-07-25 04:31:36 UTC (rev 16570)
+++ branches/v2_0_0/src/gtkconn.c 2006-07-25 17:00:51 UTC (rev 16571)
@@ -37,7 +37,9 @@
#include "gtkutils.h"
#include "util.h"
-#define INITIAL_RECON_DELAY 8000
+#define INITIAL_RECON_DELAY_MIN 8000
+#define INITIAL_RECON_DELAY_MAX 60000
+
#define MAX_RECON_DELAY 600000
typedef struct {
@@ -155,7 +157,7 @@
if (info == NULL) {
info = g_new0(GaimAutoRecon, 1);
g_hash_table_insert(hash, account, info);
- info->delay = INITIAL_RECON_DELAY;
+ info->delay = g_random_int_range(INITIAL_RECON_DELAY_MIN, INITIAL_RECON_DELAY_MAX);
} else {
info->delay = MIN(2 * info->delay, MAX_RECON_DELAY);
if (info->timeout != 0)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|