diff src/connection.c @ 11907:d2db6426c88a

[gaim-migrate @ 14198] sf patch #1342817, from Evan Schoenberg "As discussed in #gaim, this patch removes idle.c and replaces it with gtkidle.c and gtkidle.h. The attached diff removes the idle management from its various hiding places in connection.c, server.c, and gaim.h. The plugins Changelog.API is appropriately updated. The new gtkidle files are attached; idle.c should be removed from CVS." committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 30 Oct 2005 23:00:47 +0000
parents fa742ad8068c
children 0fab529c01fc
line wrap: on
line diff
--- a/src/connection.c	Sun Oct 30 20:20:38 2005 +0000
+++ b/src/connection.c	Sun Oct 30 23:00:47 2005 +0000
@@ -178,10 +178,6 @@
 		gaim_conv_chat_left(GAIM_CONV_CHAT(b));
 	}
 
-	if (gc->idle_timer > 0)
-		gaim_timeout_remove(gc->idle_timer);
-	gc->idle_timer = 0;
-
 	update_keepalive(gc, FALSE);
 
 	if (gc->prpl != NULL)
@@ -318,12 +314,6 @@
 
 		if (gaim_account_get_user_info(account) != NULL)
 			serv_set_info(gc, gaim_account_get_user_info(account));
-
-		if (gc->idle_timer > 0)
-			gaim_timeout_remove(gc->idle_timer);
-
-		gc->idle_timer = gaim_timeout_add(20000, check_idle, gc);
-		serv_touch_idle(gc);
 	}
 	else if (gc->state == GAIM_DISCONNECTED) {
 		GaimAccount *account = gaim_connection_get_account(gc);