mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-03 07:56:42 -05:00
Prevent unnesessary log
This commit is contained in:
parent
d250013c99
commit
2bf9edfe7d
@ -195,7 +195,9 @@ func (ws *wsconn) pingPong() {
|
|||||||
case <-pongRcv:
|
case <-pongRcv:
|
||||||
break
|
break
|
||||||
case <-tick.C:
|
case <-tick.C:
|
||||||
|
if !ws.connClosing {
|
||||||
log.Debug("WS:Closing as ping is not responded~" + ws.wsc.UnderlyingConn().LocalAddr().String() + "-" + ws.wsc.UnderlyingConn().RemoteAddr().String())
|
log.Debug("WS:Closing as ping is not responded~" + ws.wsc.UnderlyingConn().LocalAddr().String() + "-" + ws.wsc.UnderlyingConn().RemoteAddr().String())
|
||||||
|
}
|
||||||
ws.Close()
|
ws.Close()
|
||||||
}
|
}
|
||||||
<-tick.C
|
<-tick.C
|
||||||
|
Loading…
Reference in New Issue
Block a user