dcc: Disable timeout timer when not in use

This should mean that hexchat never *needs* to wake-up unless prompted
by socket activity (assuming that the lag-o-meter is not enabled).
This commit is contained in:
Ben Gamari
2016-05-08 21:44:29 +02:00
committed by Patrick Griffis
parent 7dca220486
commit 25e197a6c8
3 changed files with 16 additions and 11 deletions

View File

@@ -354,13 +354,6 @@ doover:
return 1;
}
static int
hexchat_check_dcc (void) /* this gets called every 1 second */
{
dcc_check_timeouts ();
return 1;
}
/* these are only run if the lagometer is enabled */
static int
hexchat_lag_check (void) /* this gets called every 30 seconds */
@@ -406,7 +399,6 @@ irc_init (session *sess)
notify_checklist, NULL);
fe_timeout_add (prefs.hex_away_timeout * 1000, away_check, NULL);
fe_timeout_add (1000, hexchat_check_dcc, NULL);
if (prefs.hex_gui_lagometer)
{
fe_timeout_add (500, hexchat_lag_check_update, NULL);