node-opcua-pki 6.7.2 → 6.8.0

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/bin/pki.mjs CHANGED
@@ -345,7 +345,7 @@ var init_simple_config_template_cnf = __esm({
345
345
  import { EventEmitter } from "events";
346
346
  import fs4 from "fs";
347
347
  import path2 from "path";
348
- import { withLock } from "@ster5/global-mutex";
348
+ import { drainPendingLocks, withLock } from "@ster5/global-mutex";
349
349
  import chalk3 from "chalk";
350
350
  import chokidar from "chokidar";
351
351
  import {
@@ -908,6 +908,7 @@ var init_certificate_manager = __esm({
908
908
  }
909
909
  try {
910
910
  this.state = 3 /* Disposing */;
911
+ await drainPendingLocks();
911
912
  for (const unreff of this.#pendingUnrefs) {
912
913
  unreff();
913
914
  }