summaryrefslogtreecommitdiff
path: root/src/tty
diff options
context:
space:
mode:
Diffstat (limited to 'src/tty')
-rw-r--r--src/tty/tty.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tty/tty.zig b/src/tty/tty.zig
index a1a28181..39c287f7 100644
--- a/src/tty/tty.zig
+++ b/src/tty/tty.zig
@@ -1482,9 +1482,9 @@ pub fn remote(init: std.process.Init, opts: pardes.Options, path: []const u8, se
// are not sent again.
if (have) |h| h.leaving(r.core());
dial_t0 = std.Io.Clock.awake.now(io).nanoseconds;
- joined = replica.Link.redial(gpa, path, session, &why, have) orelse {
+ joined = replica.Link.redial(gpa, path, session, &why, have, r.diverged == null) orelse {
screen.leave();
- Said.no(io, "{s}", .{std.mem.sliceTo(&why, 0)});
+ Said.no(io, "could not join again: {s}", .{std.mem.sliceTo(&why, 0)});
};
if (have) |h| h.left();
r.deinit();