aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'server.c')
-rw-r--r--server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/server.c b/server.c
index 82396b2e..9841816b 100644
--- a/server.c
+++ b/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. */