aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-09-24 07:02:56 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-09-24 07:02:56 +0000
commit1764ef81efce5f265f61107f0b1e91d73b858fb4 (patch)
tree4aae9f33dbc264a52108d60eec3a551740fe1b30 /server.c
parentfecf8dc44ee88bd5aee02035d13b118fa514f253 (diff)
downloadrtmux-1764ef81efce5f265f61107f0b1e91d73b858fb4.tar.gz
rtmux-1764ef81efce5f265f61107f0b1e91d73b858fb4.tar.bz2
rtmux-1764ef81efce5f265f61107f0b1e91d73b858fb4.zip
Don't allow locked or suspended clients to limit the size of active clients.
Diffstat (limited to 'server.c')
-rw-r--r--server.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/server.c b/server.c
index 6dac5f5b..f7136784 100644
--- a/server.c
+++ b/server.c
@@ -1194,8 +1194,10 @@ server_second_timers(void)
t = time(NULL);
xtimeout = options_get_number(&global_s_options, "lock-after-time");
- if (xtimeout > 0 && t > server_activity + xtimeout)
+ if (xtimeout > 0 && t > server_activity + xtimeout) {
server_lock();
+ recalculate_sizes();
+ }
for (i = 0; i < ARRAY_LENGTH(&windows); i++) {
w = ARRAY_ITEM(&windows, i);