aboutsummaryrefslogtreecommitdiff
path: root/control.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-06-12 10:01:19 +0100
committerThomas Adam <thomas@xteddy.org>2020-06-12 10:01:19 +0100
commitbd3fb2fb108c030d6acef8579027e13a92c7f42f (patch)
tree0676d889c284711404fc001bd8d87bfe8442574f /control.c
parentb5c86fdc0c1081af382e92e67b5a339908b49587 (diff)
parentd8d77691043a5ecd504fb2a82e4e312d947ab19f (diff)
downloadrtmux-bd3fb2fb108c030d6acef8579027e13a92c7f42f.tar.gz
rtmux-bd3fb2fb108c030d6acef8579027e13a92c7f42f.tar.bz2
rtmux-bd3fb2fb108c030d6acef8579027e13a92c7f42f.zip
Merge branch 'obsd-master'
Diffstat (limited to 'control.c')
-rw-r--r--control.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/control.c b/control.c
index 8ff7736f..05093d94 100644
--- a/control.c
+++ b/control.c
@@ -569,6 +569,13 @@ control_write_pending(struct client *c, struct control_pane *cp, size_t limit)
}
while (used != limit && !TAILQ_EMPTY(&cp->blocks)) {
+ if (control_check_age(c, wp, cp)) {
+ if (message != NULL)
+ evbuffer_free(message);
+ message = NULL;
+ break;
+ }
+
cb = TAILQ_FIRST(&cp->blocks);
if (cb->t < t)
age = t - cb->t;