summaryrefslogtreecommitdiff
path: root/runtime/session.zig
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/session.zig')
-rw-r--r--runtime/session.zig5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/session.zig b/runtime/session.zig
index 8630495c..60644aa6 100644
--- a/runtime/session.zig
+++ b/runtime/session.zig
@@ -101,10 +101,13 @@ pub fn Loop(comptime Frontend: type) type {
l.host = try fe.open(&l);
defer fe.close(&l);
- daemon.notesTo(&l, note);
defer l.peers.deinit();
// Before the core goes: each client sees its link end.
defer l.peers.dropAll(l.core);
+ // The daemon's notes, to the loop until its state goes (the
+ // reader runs on until main's `daemon.quit`).
+ daemon.notesTo(.{ .ctx = &l, .deliver = note });
+ defer daemon.notesTo(null);
// A first client on the socket it was started with, before its
// first effects: it has every terminal from its first byte, and
// no reload (Core.openView).