hyperdb-wasm 0.0.26301-dev.wasm.g560c2cb5 → 0.0.26304-dev.wasm.g36a4b6a4

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.
@@ -260,6 +260,7 @@
260
260
  }
261
261
  try {
262
262
  const result = bindings.handle(request);
263
+ if (request.type === "shutdown" && result.response.result.state === "ok") module.PThread.terminateAllThreads();
263
264
  transport.postMessage(result.response, result.transfer);
264
265
  } catch (error) {
265
266
  transport.postMessage({ id: request.id, type: "response", result: { state: "error", error: errorText(error) } });