mirror of
https://github.com/itzg/mc-router.git
synced 2024-11-21 11:25:41 +01:00
Only catch interrupt signal
This commit is contained in:
parent
013f0cc4f6
commit
678602a558
@ -44,7 +44,7 @@ func main() {
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
|
||||
c := make(chan os.Signal, 1)
|
||||
signal.Notify(c)
|
||||
signal.Notify(c, os.Interrupt)
|
||||
|
||||
server.Routes.RegisterAll(*mappings)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user