Browse Source

refs #18 cleans sockets

boyska 5 years ago
parent
commit
aea09d94bf
1 changed files with 1 additions and 0 deletions
  1. 1 0
      cmd/circologd/http_log.go

+ 1 - 0
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
 					}
 				}