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 {
|
for {
|
||||||
_, _, err := conn.ReadMessage()
|
_, _, err := conn.ReadMessage()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
conn.Close()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue