changeset 11721:2d98b2759fa1

[gaim-migrate @ 14012] Whitespace and change the max autorecon delay from 34.13 minutes to 10 minutes committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 22 Oct 2005 21:06:28 +0000
parents 4d8023465af4
children 01647b11ecd3
files src/gtkconn.c
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkconn.c	Sat Oct 22 20:49:55 2005 +0000
+++ b/src/gtkconn.c	Sat Oct 22 21:06:28 2005 +0000
@@ -39,7 +39,7 @@
 #include "gtkutils.h"
 
 #define INITIAL_RECON_DELAY 8000
-#define MAX_RECON_DELAY 2048000
+#define MAX_RECON_DELAY 600000
 
 typedef struct {
 	int delay;
@@ -142,8 +142,8 @@
 	GSList* listAccount;
 
 	if (hash == NULL) {
-	       	hash = g_hash_table_new_full(g_int_hash, g_int_equal, NULL,
-	       	free_auto_recon);
+		hash = g_hash_table_new_full(g_int_hash, g_int_equal, NULL,
+		free_auto_recon);
 	}
 	account = gaim_connection_get_account(gc);
 	info = g_hash_table_lookup(hash, account);
@@ -154,7 +154,7 @@
 
 	if (!gc->wants_to_die) {
 	  gtk_gaim_status_box_set_error(GTK_GAIM_STATUS_BOX(list->statusbox), text);
-	  
+
 	  if (info == NULL) {
 			info = g_new0(GaimAutoRecon, 1);
 			g_hash_table_insert(hash, account, info);
@@ -170,12 +170,12 @@
 			accountReconnecting = g_slist_prepend(accountReconnecting, account);
 	} else {
 	  char *p, *s, *n=NULL ;
-	  if (info != NULL) 	    
+	  if (info != NULL)
 	    g_hash_table_remove(hash, account);
-	    
+
 	  if (listAccount)
 	      accountReconnecting = g_slist_delete_link(accountReconnecting, listAccount);
-	  
+
 	  if (gaim_account_get_alias(account)) {
 	    n = g_strdup_printf("%s (%s) (%s)",
 				  gaim_account_get_username(account),
@@ -186,7 +186,7 @@
 				  gaim_account_get_username(account),
 				  gaim_account_get_protocol_name(account));
 	    }
-	
+
 	    p = g_strdup_printf(_("%s disconnected"), n);
 	    s = g_strdup_printf(_("%s was disconnected due to an error. %s The account has been disabled. "
 				  "Correct the error and reenable the account to connect."), n, text);