Update packages/backend-app-api/src/wiring/BackendInitializer.ts
Co-authored-by: Fredrik Adelöw <freben@gmail.com> Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -373,7 +373,7 @@ export class BackendInitializer {
|
||||
|
||||
// It's fine to call .stop() multiple times, which for example can happen with manual stop + process exit
|
||||
async stop(): Promise<void> {
|
||||
instanceRegistry.register(this);
|
||||
instanceRegistry.unregister(this);
|
||||
|
||||
if (!this.#stopPromise) {
|
||||
this.#stopPromise = this.#doStop();
|
||||
|
||||
Reference in New Issue
Block a user