@@ -44,17 +44,14 @@ func main() { fmt.Fprintf(os.Stderr, "invalid -router flag value %q\n", *routerFlag) flag.Usage() os.Exit(2) } int := make(chan os.Signal, 1) signal.Notify(int, os.Interrupt) ctx, cancel := context.WithCancel(context.Background()) go func() { sigint := make(chan os.Signal, 1) signal.Notify(sigint, os.Interrupt) <-sigint cancel() }() go func() { <-int; cancel() }() err := run(ctx, router, *analyticsFileFlag) if err != nil { log.Fatalln(err) }