瀏覽代碼

don't log warning when not accepting anymore.

v2ray 9 年之前
父節點
當前提交
175d56a10b
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      transport/hub/tcp.go

+ 3 - 1
transport/hub/tcp.go

@@ -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{