refs #18 cleans sockets
This commit is contained in:
parent
5717c7ca29
commit
aea09d94bf
1 changed files with 1 additions and 0 deletions
|
@ -157,6 +157,7 @@ func getWSHandler(hub circolog.Hub) http.HandlerFunc {
|
|||
for {
|
||||
_, _, err := conn.ReadMessage()
|
||||
if err != nil {
|
||||
conn.Close()
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue