Skip to content

Commit

Permalink
fix: fix for try catch
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Dec 18, 2023
1 parent 8cb8125 commit 33e9df8
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ class WorkerManager(workerContext: WorkerContext) {

suspend fun runAll() : List<Instruction> {
return workers.map { (_, worker) ->
worker.start()
try {
worker.start()
} catch (e: Exception) {
e.printStackTrace()
emptyList()
}
}.flatten()
}
}
Expand Down

0 comments on commit 33e9df8

Please sign in to comment.