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