mirror of
https://gitlab.com/ric_harvey/MailHog.git
synced 2024-11-27 08:14:04 +00:00
Merge branch 'remove-loop' of https://github.com/hatahet/MailHog
This commit is contained in:
commit
f2268ad7d6
1 changed files with 2 additions and 7 deletions
9
main.go
9
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")
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue