modified: ../common.go

This commit is contained in:
bllfr0g 2019-11-24 19:30:51 -08:00
parent ca4419d65c
commit befa547c3b
1 changed files with 6 additions and 4 deletions

View File

@ -347,11 +347,13 @@ func Main(statePath string, processCallback certspotter.ProcessCallback) int {
go processLog(&logs[i], processCallback)
}
wg.Wait()
go func() {
for i := range rcode {
exitCode |= i
}
}()
for i := range rcode {
exitCode |= i
}
wg.Wait()
if state.IsFirstRun() && exitCode == 0 {
if err := state.WriteOnceFile(); err != nil {