mirror of
https://gitlab.com/ric_harvey/MailHog.git
synced 2024-11-23 14:24:03 +00:00
Remove unnecessary loop and select when waiting on exitCh
This commit is contained in:
parent
f5559ac003
commit
a9f3a589ed
1 changed files with 2 additions and 7 deletions
7
main.go
7
main.go
|
@ -97,13 +97,8 @@ func main() {
|
|||
}
|
||||
go smtp.Listen(apiconf, exitCh)
|
||||
|
||||
for {
|
||||
select {
|
||||
case <-exitCh:
|
||||
<-exitCh
|
||||
log.Printf("Received exit signal")
|
||||
os.Exit(0)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue