@jaak.ai/stamps 2.5.0 → 2.5.1-dev.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.
@@ -18425,6 +18425,7 @@ class MetricsService {
18425
18425
 
18426
18426
  class ServiceContainer {
18427
18427
  services = new Map();
18428
+ cleanedUp = false;
18428
18429
  constructor(config) {
18429
18430
  this.initializeServices(config);
18430
18431
  }
@@ -18515,6 +18516,10 @@ class ServiceContainer {
18515
18516
  updateConfig(config) {
18516
18517
  }
18517
18518
  async cleanup() {
18519
+ if (this.cleanedUp) {
18520
+ return;
18521
+ }
18522
+ this.cleanedUp = true;
18518
18523
  // Cleanup services in reverse order
18519
18524
  this.getDetectionService().cleanup();
18520
18525
  // Cleanup metrics service if present