Refactor timer handling

This allows us to omit the lagometer timer in the event that it is not
enabled, bringing the baseline wake-up rate down to 1Hz from 2Hz, which
could bring considerable power savings on mobile devices.
This commit is contained in:
Ben Gamari
2016-05-08 09:35:29 +02:00
committed by Patrick Griffis
parent 111ba3750f
commit 7dca220486
2 changed files with 24 additions and 19 deletions

View File

@@ -233,7 +233,7 @@ is_dcc_completed (struct DCC *dcc)
return FALSE;
}
/* this is called from hexchat.c:hexchat_misc_checks() every 1 second. */
/* this is called from hexchat.c:hexchat_check_dcc() every 1 second. */
void
dcc_check_timeouts (void)