Fix negative WG counter

This commit is contained in:
MTRNord 2018-12-01 19:20:17 +01:00
parent 7bfd9e898f
commit 933bfd8568
No known key found for this signature in database
GPG Key ID: E5B89311FAB91B9F
1 changed files with 1 additions and 0 deletions

View File

@ -142,6 +142,7 @@ var rootCmd = &cobra.Command{
go metrics.Start()
util.Botwg.Add(1)
go func() {
sc := make(chan os.Signal, 1)
signal.Notify(sc, syscall.SIGINT, syscall.SIGTERM, os.Interrupt, os.Kill)