diff options
Diffstat (limited to 'runtime/session.zig')
| -rw-r--r-- | runtime/session.zig | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/session.zig b/runtime/session.zig index 5d7eff78..0bd38c86 100644 --- a/runtime/session.zig +++ b/runtime/session.zig @@ -126,8 +126,10 @@ pub fn Loop(comptime Frontend: type) type { // 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; + // nothing could attach to it again; with one, when its last + // client closed its window (a close, not a loss), no Detach + // typed in any. + if (o.pair != null and l.peers.count() == 0 and (daemon.link < 0 or l.peers.closed)) break; fe.sent(); upgrade.locate(); // Asked in the step (the word), done between steps: the |
