Skip to content

Commit

Permalink
fix(server): fix server not closing when spinned
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmasse committed Jan 19, 2022
1 parent 0397d71 commit 4bd6a6f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/server/src/launcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ export class Launcher {
}

async shutDown(code?: number) {
if (!this.shuttingDown && !yn(process.env.SPINNED)) {
if (yn(process.env.SPINNED)) {
process.exit(code)
} else if (!this.shuttingDown) {
this.shuttingDown = true

try {
Expand Down

0 comments on commit 4bd6a6f

Please sign in to comment.