summaryrefslogtreecommitdiff
path: root/runtime/session.zig
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/session.zig')
-rw-r--r--runtime/session.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/session.zig b/runtime/session.zig
index d34a8ea9..0ef0a8ab 100644
--- a/runtime/session.zig
+++ b/runtime/session.zig
@@ -125,6 +125,9 @@ pub fn Loop(comptime Frontend: type) type {
try l.core.pump(l.host);
// Its unit to each replica client, and theirs taken in.
l.peers.boundary(l.core);
+ // A pair's session with no daemon ends with its last link:
+ // nothing could attach to it again.
+ if (o.pair != null and daemon.link < 0 and l.peers.count() == 0) break;
fe.sent();
upgrade.locate();
// Asked in the step (the word), done between steps: the