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