Do not deliver an action if the target relay is dead
This commit is contained in:
parent
1e08230027
commit
d14ddc39f7
|
@ -590,7 +590,7 @@ export class Turn {
|
||||||
throw new Error("Attempt to reuse a committed Turn");
|
throw new Error("Attempt to reuse a committed Turn");
|
||||||
}
|
}
|
||||||
const a: StructuredTask<TaskAction> = {
|
const a: StructuredTask<TaskAction> = {
|
||||||
perform() { Turn.active._inFacet(relay, a0); },
|
perform() { relay.isLive && Turn.active._inFacet(relay, a0); },
|
||||||
describe() { return { targetFacet: relay, action: detail() }; },
|
describe() { return { targetFacet: relay, action: detail() }; },
|
||||||
};
|
};
|
||||||
this.queues.get(relay.actor)?.push(a) ?? this.queues.set(relay.actor, [a]);
|
this.queues.get(relay.actor)?.push(a) ?? this.queues.set(relay.actor, [a]);
|
||||||
|
|
Loading…
Reference in New Issue