Explorar el Código

fix test break

Darien Raymond hace 8 años
padre
commit
0d68293ef8
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      transport/internet/websocket/wsconn.go

+ 1 - 0
transport/internet/websocket/wsconn.go

@@ -29,6 +29,7 @@ func (c *wsconn) Read(b []byte) (int, error) {
 
 		nBytes, err := reader.Read(b)
 		if errors.Cause(err) == io.EOF {
+			c.reader = nil
 			continue
 		}
 		return nBytes, err