diff options
Diffstat (limited to 'core/Effect.zig')
| -rw-r--r-- | core/Effect.zig | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/Effect.zig b/core/Effect.zig index cabfe8ea..9fb4d9fa 100644 --- a/core/Effect.zig +++ b/core/Effect.zig @@ -251,9 +251,10 @@ fn performInner(p: *Pardes, e: Effect) void { .dump_themes => |d| _ = p.tape.host(p, .dump_themes, .{d.pane}), .detach => |d| p.tape.host(p, .detach, .{}) orelse p.reportError(d.pane, "detach", error.NotAttached), // dlopen is the same on every host, so none has a method of its - // own; a replica's core holds no library (what it brought comes in - // the event this taped). - .addon => |a| if (!p.tape.replaying()) @import("Addon.zig").perform(p, a.op, a.pane.index(), a.arg.slice()), + // own; a replica's core holds no library: what it brought is the + // event inside this call, recorded there and applied by a replay + // (its code a client's own, Addon.plainOps); a speculation waits. + .addon => |a| if (!p.tape.authorityOnly("an addon's load")) p.tape.value(.landing, @import("Addon.zig").perform, .{ p, a.op, a.pane.index(), a.arg.slice() }), .job => |j| p.tape.host(p, .job, .{ j.pane, j.serial, j.token }) orelse if (!p.tape.replaying()) host_io.KindJob.runHere(p, j.pane.index(), j.serial, j.token), // the loop's own condition; a host tears down after its own loop .quit => p.endSession(), |
