1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 18:17:52 -05:00

don't log warning when not accepting anymore.

This commit is contained in:
v2ray 2016-02-18 11:36:21 +01:00
parent 01f239cef2
commit 175d56a10b

View File

@ -95,7 +95,9 @@ func (this *TCPHub) start() {
for this.accepting { for this.accepting {
conn, err := this.listener.AcceptTCP() conn, err := this.listener.AcceptTCP()
if err != nil { if err != nil {
if this.accepting {
log.Warning("Listener: Failed to accept new TCP connection: ", err) log.Warning("Listener: Failed to accept new TCP connection: ", err)
}
continue continue
} }
go this.connCallback(&TCPConn{ go this.connCallback(&TCPConn{