Repair client: retract adhoc assertions on facet stop

This commit is contained in:
Tony Garnock-Jones 2019-06-11 17:41:27 +01:00
parent 5c94433a85
commit 0f00b0a83f
1 changed files with 3 additions and 2 deletions

View File

@ -57,12 +57,13 @@ export function _genericClientSessionFacet(addr, scope, w0, debug) {
const outboundTurn = recorder(this, 'commitNeeded', (items) => w(Turn(items)));
on start w(Connect(scope));
let pubs = Map();
let subs = 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) {
const ep = genUuid('pub');
outboundTurn.extend(Assert(ep, a));