Repair client: retract adhoc assertions on facet stop
This commit is contained in:
parent
5c94433a85
commit
0f00b0a83f
|
@ -57,12 +57,13 @@ export function _genericClientSessionFacet(addr, scope, w0, debug) {
|
||||||
|
|
||||||
const outboundTurn = recorder(this, 'commitNeeded', (items) => w(Turn(items)));
|
const outboundTurn = recorder(this, 'commitNeeded', (items) => w(Turn(items)));
|
||||||
|
|
||||||
on start w(Connect(scope));
|
|
||||||
|
|
||||||
let pubs = Map();
|
let pubs = Map();
|
||||||
let subs = Map();
|
let subs = Map();
|
||||||
let matches = Map();
|
let matches = Map();
|
||||||
|
|
||||||
|
on start w(Connect(scope));
|
||||||
|
on stop matches.forEach((m) => m.captures.forEach((a) => currentFacet().actor.adhocRetract(a)));
|
||||||
|
|
||||||
on asserted ToServer(addr, $a) {
|
on asserted ToServer(addr, $a) {
|
||||||
const ep = genUuid('pub');
|
const ep = genUuid('pub');
|
||||||
outboundTurn.extend(Assert(ep, a));
|
outboundTurn.extend(Assert(ep, a));
|
||||||
|
|
Loading…
Reference in New Issue