From aea09d94bfd45c0b8938b120f77b6acc362b73bc Mon Sep 17 00:00:00 2001 From: boyska Date: Tue, 30 Apr 2019 17:56:13 +0200 Subject: [PATCH] refs #18 cleans sockets --- cmd/circologd/http_log.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/circologd/http_log.go b/cmd/circologd/http_log.go index bdb63c8..1678e87 100644 --- a/cmd/circologd/http_log.go +++ b/cmd/circologd/http_log.go @@ -157,6 +157,7 @@ func getWSHandler(hub circolog.Hub) http.HandlerFunc { for { _, _, err := conn.ReadMessage() if err != nil { + conn.Close() return } }