mirror of
https://gitlab.com/ric_harvey/MailHog.git
synced 2024-11-23 14:24:03 +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)
|
go smtp.Listen(apiconf, exitCh)
|
||||||
|
|
||||||
for {
|
<-exitCh
|
||||||
select {
|
log.Printf("Received exit signal")
|
||||||
case <-exitCh:
|
|
||||||
log.Printf("Received exit signal")
|
|
||||||
os.Exit(0)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue