fix possible dead loop

master
dingjun 4 years ago
parent 73b101dfc5
commit 734613015e

@ -72,8 +72,10 @@ func forwardWS2TCP(conn1 *websocket.Conn, conn2 net.Conn) {
for { for {
n, err := conn2.Read(buf) n, err := conn2.Read(buf)
if err != nil && err != io.EOF { if err != nil {
log.Errorln(err) if err != io.EOF {
log.Errorln(err)
}
break break
} }

Loading…
Cancel
Save