summaryrefslogtreecommitdiff
path: root/dev/tui/tui.zig
diff options
context:
space:
mode:
Diffstat (limited to 'dev/tui/tui.zig')
-rw-r--r--dev/tui/tui.zig7
1 files changed, 3 insertions, 4 deletions
diff --git a/dev/tui/tui.zig b/dev/tui/tui.zig
index e2cdd2fa..312a0846 100644
--- a/dev/tui/tui.zig
+++ b/dev/tui/tui.zig
@@ -1240,9 +1240,8 @@ const Shell = struct {
/// The session's replica clients (core/replica.zig), on sockets: the
/// session loop's (runtime/session.zig); a client's, none.
peers: *replica.Peers,
- /// This wait took only a replica's post (its input, its join): the
- /// pump after it reads no new time, so it moves nothing the replicas'
- /// speculations stand on (a replica takes such a unit as is).
+ /// This wait took nothing but a replica's post, if one (its input, its
+ /// join): the pump after one reads no new time (Peers.heldNow).
mail_only: bool = false,
waited: bool = false,
/// This wait's steps so far, and the input held for the next (`split`).
@@ -1321,7 +1320,7 @@ const Shell = struct {
const s = of(ctx);
if (s.waited) {
s.waited = false;
- if (s.mail_only and s.peers.count() > 0 and s.core.clock.started) return s.core.clock.now_ns;
+ if (s.peers.heldNow(s.core, s.mail_only)) |held| return held;
}
return s.test_clock orelse @intCast(std.Io.Clock.awake.now(s.io).nanoseconds);
}