Skip to content

Commit 7f8c3ea

Browse files
Fix Queue crash
1 parent 8b01aba commit 7f8c3ea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/Alchemy/Commands/Serve/RunServe.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ final class RunServe: Command {
6060
lifecycle.registerScheduler()
6161
}
6262

63-
lifecycle.registerWorkers(workers, on: .default)
63+
if workers > 0 {
64+
lifecycle.registerWorkers(workers, on: .default)
65+
}
6466
}
6567

6668
func start() -> EventLoopFuture<Void> {

0 commit comments

Comments
 (0)