@yangda611/dsh-scriptor 8.4.6 → 8.4.7
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/README.md +8 -8
- package/lib/client.js +48 -48
- package/lib/index.js +2 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -29423,13 +29423,14 @@ function attachWritingDelegationToAgent(agent) {
|
|
|
29423
29423
|
return void 0;
|
|
29424
29424
|
}
|
|
29425
29425
|
if (fiber === void 0 || typeof fiber.dispose !== "function") return void 0;
|
|
29426
|
+
const disposeFiber = fiber.dispose.bind(fiber);
|
|
29426
29427
|
let disposed = false;
|
|
29427
29428
|
const dispose = async () => {
|
|
29428
29429
|
if (disposed) return;
|
|
29429
29430
|
disposed = true;
|
|
29430
29431
|
attachedDelegations.delete(agent);
|
|
29431
29432
|
liveDelegationDisposes.delete(dispose);
|
|
29432
|
-
await
|
|
29433
|
+
await disposeFiber();
|
|
29433
29434
|
};
|
|
29434
29435
|
attachedDelegations.set(agent, dispose);
|
|
29435
29436
|
liveDelegationDisposes.add(dispose);
|