Skip to content

Commit

Permalink
fix: issues #20
Browse files Browse the repository at this point in the history
  • Loading branch information
gphper committed Jul 11, 2023
1 parent 6149a49 commit 6667ea8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/application.go
Expand Up @@ -11,6 +11,7 @@ import (
"net/http"
"os"
"os/signal"
"syscall"
"time"

"github.com/gphper/ginadmin/configs"
Expand All @@ -36,9 +37,8 @@ func (app Application) Run() {
}
}()

quit := make(chan os.Signal)

signal.Notify(quit, os.Interrupt)
quit := make(chan os.Signal, 1)
signal.Notify(quit, os.Interrupt, syscall.SIGINT, syscall.SIGTERM, syscall.SIGQUIT)

<-quit

Expand Down

0 comments on commit 6667ea8

Please sign in to comment.