@omercnet/paseo-omp 0.3.0-next.107.1 → 0.3.0-next.108.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omercnet/paseo-omp",
3
- "version": "0.3.0-next.107.1",
3
+ "version": "0.3.0-next.108.1",
4
4
  "type": "module",
5
5
  "description": "Paseo integration for OMP, including its direct provider and workspace tooling.",
6
6
  "license": "MIT",
@@ -224,6 +224,7 @@ export class SupervisedStdioClientTransport implements Transport {
224
224
  this.notifyClose();
225
225
  return;
226
226
  }
227
+ const treeCleanup = this.startTreeCleanup();
227
228
  if (!this.exited) {
228
229
  try {
229
230
  child.stdin.end();
@@ -231,7 +232,7 @@ export class SupervisedStdioClientTransport implements Transport {
231
232
  // Process-tree cleanup remains authoritative when stdin is already closed.
232
233
  }
233
234
  }
234
- const terminated = await this.startTreeCleanup();
235
+ const terminated = await treeCleanup;
235
236
  const exited =
236
237
  this.spawnFailedWithoutProcess ||
237
238
  this.exited ||
@@ -2289,14 +2289,14 @@ class OmpRpcProcess {
2289
2289
  this.flushProtocolViolations();
2290
2290
  this.clearChunk();
2291
2291
  this.failPending(new Error("OMP RPC process was closed"));
2292
+ const cleanupPromise = this.startTreeCleanup();
2292
2293
  if (!this.exited) {
2293
2294
  try {
2294
2295
  this.child.stdin.end();
2295
2296
  } catch {
2296
- // Continue to process-tree cleanup when the input channel is already closed.
2297
+ // Continue waiting for process-tree cleanup when the input channel is already closed.
2297
2298
  }
2298
2299
  }
2299
- const cleanupPromise = this.startTreeCleanup();
2300
2300
  const cleanup = await cleanupPromise;
2301
2301
  if (cleanup !== "verified") throw new Error("OMP RPC process tree cleanup failed");
2302
2302
  if (