diff --git a/main.go b/main.go index 1e0cd70..60436f8 100644 --- a/main.go +++ b/main.go @@ -105,7 +105,9 @@ func main() { Addr: listen, Handler: mux(), } - go log.Fatal(server.ListenAndServe()) + go func() { + log.Fatal(server.ListenAndServe()) + }() <-stop