Skip to content

Commit

Permalink
Parallelization: fix wrong length for error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
christophetd committed Feb 10, 2022
1 parent 5d88ada commit 02b8784
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/stratus/detonate_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func doDetonateCmd(techniques []*stratus.AttackTechnique, cleanup bool) {
}
close(techniquesChan)

if hadError := handleErrorsChannel(errorsChan, len(techniquesChan)); hadError {
if hadError := handleErrorsChannel(errorsChan, len(techniques)); hadError {
os.Exit(1)
}
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/stratus/warmup_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func doWarmupCmd(techniques []*stratus.AttackTechnique) {
}
close(techniquesChan)

if hadError := handleErrorsChannel(errorsChan, len(techniquesChan)); hadError {
if hadError := handleErrorsChannel(errorsChan, len(techniques)); hadError {
os.Exit(1)
}
}
Expand Down

0 comments on commit 02b8784

Please sign in to comment.