mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-15 10:10:19 +00:00
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:
committed by
Patrick Griffis
parent
7dca220486
commit
25e197a6c8
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user