Format
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
Sarah Jamie Lewis 2021-05-05 12:49:24 -07:00
parent 23230fad68
commit c234b11cc2
2 changed files with 10 additions and 11 deletions

View File

@ -87,14 +87,13 @@ func main() {
// Graceful Shutdown
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt, syscall.SIGTERM)
go func(){
go func() {
<-c
acn.Close()
server.Close()
os.Exit(1)
}()
server.Run(acn)
for {
time.Sleep(time.Second)