tradeblocks-mcp 2.2.0-beta.2 → 2.2.0-beta.4

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.
@@ -764,7 +764,19 @@ async function openReadOnlyConnection(dbPath, threads, memoryLimit) {
764
764
  return connection;
765
765
  }
766
766
  function resetConnectionState() {
767
+ if (connection) {
768
+ try {
769
+ connection.closeSync();
770
+ } catch {
771
+ }
772
+ }
767
773
  connection = null;
774
+ if (instance) {
775
+ try {
776
+ instance.closeSync();
777
+ } catch {
778
+ }
779
+ }
768
780
  instance = null;
769
781
  connectionMode = null;
770
782
  }
@@ -825,6 +837,12 @@ async function closeConnection() {
825
837
  }
826
838
  connection = null;
827
839
  }
840
+ if (instance) {
841
+ try {
842
+ instance.closeSync();
843
+ } catch {
844
+ }
845
+ }
828
846
  instance = null;
829
847
  connectionMode = null;
830
848
  }
@@ -22744,4 +22762,4 @@ decimal.js/decimal.mjs:
22744
22762
  * MIT Licence
22745
22763
  *)
22746
22764
  */
22747
- //# sourceMappingURL=chunk-YB2K6ONA.js.map
22765
+ //# sourceMappingURL=chunk-NGUR7NHG.js.map