diff --git a/main.go b/main.go index 5e92f24..3c6322c 100644 --- a/main.go +++ b/main.go @@ -97,13 +97,8 @@ func main() { } go smtp.Listen(apiconf, exitCh) - for { - select { - case <-exitCh: - log.Printf("Received exit signal") - os.Exit(0) - } - } + <-exitCh + log.Printf("Received exit signal") } /*