don't log warning when not accepting anymore.

pull/91/head
v2ray 2016-02-18 11:36:21 +01:00
parent 01f239cef2
commit 175d56a10b
1 changed files with 3 additions and 1 deletions

View File

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