Skip to content

Commit

Permalink
fix #55 : now that we have split the code for external shutdown (serv…
Browse files Browse the repository at this point in the history
…ice) and one-shot, we don't need the 5s sleep anymore
  • Loading branch information
buixor committed Jun 2, 2020
1 parent 72d1fe4 commit fa2fd47
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cmd/crowdsec/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ func termHandler(sig os.Signal) error {
log.Warningf("Acquisition returned error : %s", err)
}
log.Infof("acquisition is finished, wait for parser/bucket/ouputs.")
//let's wait more than enough for in-flight events to be parsed.
time.Sleep(5 * time.Second)
parsersTomb.Kill(nil)
if err := parsersTomb.Wait(); err != nil {
log.Warningf("Parsers returned error : %s", err)
Expand Down

0 comments on commit fa2fd47

Please sign in to comment.