Skip to content

Commit

Permalink
fix: stop duplicate invoke (#2221)
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed Aug 12, 2022
1 parent 08e4152 commit 6bd3f57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/bootstrap/src/bootstrap.ts
Expand Up @@ -47,7 +47,9 @@ export class BootstrapStarter {
}

public async stop() {
await destroyGlobalApplicationContext(this.applicationContext);
if (this.applicationContext) {
await destroyGlobalApplicationContext(this.applicationContext);
}
}

public getApplicationContext() {
Expand Down

0 comments on commit 6bd3f57

Please sign in to comment.