diff --git a/package.json b/package.json index b2d66de..0bc81c5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@extollo/lib", - "version": "0.9.18", + "version": "0.9.19", "description": "The framework library that lifts up your code.", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/support/bus/Bus.ts b/src/support/bus/Bus.ts index 9b97bf9..26d6042 100644 --- a/src/support/bus/Bus.ts +++ b/src/support/bus/Bus.ts @@ -234,6 +234,8 @@ export class Bus extends Unit implements EventBus< } onContainerDestroy(): Awaitable { - this.down() + if ( this.isUp ) { + this.down() + } } } diff --git a/src/support/bus/LocalBus.ts b/src/support/bus/LocalBus.ts index 87d4338..31c1a08 100644 --- a/src/support/bus/LocalBus.ts +++ b/src/support/bus/LocalBus.ts @@ -139,6 +139,8 @@ export class LocalBus extends CanonicalItemClass i } onContainerRelease(): Awaitable { - this.down() + if ( this.isUp ) { + this.down() + } } }