summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/client.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/client.zig b/runtime/client.zig
index d4b76a1b..789cac27 100644
--- a/runtime/client.zig
+++ b/runtime/client.zig
@@ -218,6 +218,10 @@ pub fn Loop(comptime Frontend: type) type {
reader.join();
_ = libc.close(s.joined.fd);
s.joined.rest.deinit(s.gpa);
+ // Its link cut with no word by a session that is there still
+ // (an Upgrade's exec): joined again, as when told so.
+ if (link.gone and link.refused == null and link.ended == null and !link.left and s.have == null and replica.cutListed("the session hung up", s.dial.session))
+ link.refused = std.heap.c_allocator.dupe(u8, replica.upgrading) catch null;
// Why it joins again is in its notice until a key.
if (!link.rejoins()) {
// What it made since it joined, kept for its next start.