Skip to content

Commit

Permalink
Merge pull request #406 from simoneb/patch-1
Browse files Browse the repository at this point in the history
fix: start state handling
  • Loading branch information
timgit committed Jul 2, 2023
2 parents 86bd903 + 428b24b commit ea2cf77
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.js
Expand Up @@ -94,14 +94,13 @@ class PgBoss extends EventEmitter {
return this
}

this.stopped = false

if (this.db.isOurs && !this.db.opened) {
await this.db.open()
}

await this.contractor.start()

this.stopped = false
this.started = true

this.manager.start()
Expand Down

0 comments on commit ea2cf77

Please sign in to comment.