mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-16 00:28:10 +02:00
Only redraw all clients once when the backoff timer expires rather than every
second all the time. Reported by Simon Nicolussi.
This commit is contained in:
3
server.c
3
server.c
@ -1210,11 +1210,12 @@ server_second_timers(void)
|
||||
}
|
||||
}
|
||||
|
||||
if (t > password_backoff) {
|
||||
if (password_backoff != 0 && t >= password_backoff) {
|
||||
for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
|
||||
if ((c = ARRAY_ITEM(&clients, i)) != NULL)
|
||||
server_redraw_client(c);
|
||||
}
|
||||
password_backoff = 0;
|
||||
}
|
||||
|
||||
/* Check for a minute having passed. */
|
||||
|
Reference in New Issue
Block a user