diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-09-05 17:42:17 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-09-05 17:42:17 +0000 |
commit | eef0e189694ea93f1e6c2b54a5fce49faa87b2d0 (patch) | |
tree | b9389c3f5635e773171233743b34d624660c5f27 /usr.bin/tmux/server.c | |
parent | 644d294babf3f4aaef64ba19ac7abbaf9aa101cd (diff) |
Only redraw all clients once when the backoff timer expires rather than every
second all the time.
Reported by Simon Nicolussi.
Diffstat (limited to 'usr.bin/tmux/server.c')
-rw-r--r-- | usr.bin/tmux/server.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c index 6af90ed464d..400bed6431a 100644 --- a/usr.bin/tmux/server.c +++ b/usr.bin/tmux/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.28 2009/09/04 13:29:10 nicm Exp $ */ +/* $OpenBSD: server.c,v 1.29 2009/09/05 17:42:16 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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. */ |