mirror of https://github.com/gorilla/websocket.git
bug fix
This commit is contained in:
parent
b0eaa89a8e
commit
7850399753
2
conn.go
2
conn.go
|
@ -688,7 +688,7 @@ func (c *Conn) NextReader() (messageType int, r io.Reader, err error) {
|
||||||
frameType, err := c.advanceFrame()
|
frameType, err := c.advanceFrame()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if e, ok := err.(net.Error); ok && e.Timeout() {
|
if e, ok := err.(net.Error); ok && e.Timeout() {
|
||||||
continue
|
return noFrame, nil, e
|
||||||
}
|
}
|
||||||
c.readErr = hideTempErr(err)
|
c.readErr = hideTempErr(err)
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue