@remix_labs/machine-starter 2.12937.0-dev → 2.12939.0-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/common.js CHANGED
@@ -46,14 +46,15 @@ async function terminateVM(vmID) {
46
46
  // make the VM first unknown to the outside and disconnect it,
47
47
  // then clean up resources (including stopping the VM)
48
48
  let channel = await last_hub.newChannel();
49
+ let topic = worker_topics[vmID];
49
50
  let payload = { _rmx_type:"msg_vm_register", id: vmID, alive: false };
51
+ let msg = channel.newJSONMessage("msg_vm_register", "vm", payload);
50
52
  await channel.publish(topic + "/announce", msg, true);
51
53
  // NB. This msg is a leak - it will never be removed.
52
54
  await channel.disconnect("vm_" + vmID);
53
55
  // now the VM is isolated and cannot communicate with the
54
56
  // hub anymore
55
57
  let worker = workers[vmID];
56
- let topic = worker_topics[vmID];
57
58
  let vmChildren = children[vmID] || [];
58
59
  let blobList = blobs[vmID] || [];
59
60
  let ffiLoop = ffiLoops[vmID];
@@ -162,6 +163,9 @@ async function StartWASM2(hub, config, getWorker) {
162
163
  // already terminating. If so, wait for completion.
163
164
  coord.will_start = true;
164
165
  while (coord.term_promise) {
166
+ if (initialMask & DEBUG_STATE) {
167
+ console.debug("[machine-starter] waiting for termination of VM: " + config.vmID);
168
+ };
165
169
  await coord.term_promise;
166
170
  }
167
171
  // if already starting up, this is an error.
@@ -1,2 +1,2 @@
1
- var GROOVEBOX_BUILD = "12937";
1
+ var GROOVEBOX_BUILD = "12939";
2
2
  export { GROOVEBOX_BUILD }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remix_labs/machine-starter",
3
- "version": "2.12937.0-dev",
3
+ "version": "2.12939.0-dev",
4
4
  "description": "start the groove",
5
5
  "main": "node.js",
6
6
  "browser": "index.js",
@@ -11,7 +11,7 @@
11
11
  "author": "Remixlabs staff",
12
12
  "license": "ISC",
13
13
  "dependencies": {
14
- "@remix_labs/hub-client": "2.12937.0-dev",
14
+ "@remix_labs/hub-client": "2.12939.0-dev",
15
15
  "nanoid": "^5.0.2",
16
16
  "web-worker": "^1.2.0"
17
17
  },