Skip to content

Commit

Permalink
Fixes silent startup failures
Browse files Browse the repository at this point in the history
  • Loading branch information
targodan committed Dec 23, 2022
1 parent a75a20b commit 3998514
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/receive.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@ func receive(c *cli.Context) error {
}()

err = reportServer.Start()
if err != http.ErrServerClosed {
return cli.Exit(err, 10)
}

switch {
case <-shutdownStarted:
<-shutdownCompleted
default:
}
if err != http.ErrServerClosed {
return cli.Exit(err, 10)
}
return nil
}

0 comments on commit 3998514

Please sign in to comment.