node-opcua-pki 6.7.2 → 6.7.3

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/dist/index.mjs CHANGED
@@ -1073,7 +1073,7 @@ var CertificateAuthority = class {
1073
1073
  import { EventEmitter } from "events";
1074
1074
  import fs9 from "fs";
1075
1075
  import path6 from "path";
1076
- import { withLock } from "@ster5/global-mutex";
1076
+ import { drainPendingLocks, withLock } from "@ster5/global-mutex";
1077
1077
  import chalk6 from "chalk";
1078
1078
  import chokidar from "chokidar";
1079
1079
  import {
@@ -1735,6 +1735,7 @@ var CertificateManager = class _CertificateManager extends EventEmitter {
1735
1735
  }
1736
1736
  try {
1737
1737
  this.state = 3 /* Disposing */;
1738
+ await drainPendingLocks();
1738
1739
  for (const unreff of this.#pendingUnrefs) {
1739
1740
  unreff();
1740
1741
  }