From e0a0907bea749af32928bebf47e4aab71788da14 Mon Sep 17 00:00:00 2001 From: Alexander Andryashin Date: Sat, 17 Jun 2017 10:17:48 +0300 Subject: [PATCH] Fix #83 --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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