Skip to content

Commit

Permalink
Fix Queue crash
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuawright11 committed Oct 4, 2021
1 parent 8b01aba commit 7f8c3ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/Alchemy/Commands/Serve/RunServe.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ final class RunServe: Command {
lifecycle.registerScheduler()
}

lifecycle.registerWorkers(workers, on: .default)
if workers > 0 {
lifecycle.registerWorkers(workers, on: .default)
}
}

func start() -> EventLoopFuture<Void> {
Expand Down

0 comments on commit 7f8c3ea

Please sign in to comment.