Hack: keep workers running until the relay quits; this is arguably the wrong approach to a real problem

This commit is contained in:
Tony Garnock-Jones 2018-12-13 20:18:48 +00:00
parent 1cb66959dd
commit 3b18ac6800
1 changed files with 3 additions and 0 deletions

View File

@ -141,6 +141,9 @@ function spawnWorkerRelay() {
Dataspace.spawn('WorkerRelay', function () {
const outerFacet = Dataspace.currentFacet();
const finish = Dataspace.backgroundTask();
outerFacet.addStopScript(finish);
let outboundEndpoints = Map();
let inboundEndpoints = Map();
let nextId = 0;