From 175d56a10bdccf719e228b4cdb0c8eaad4f327f6 Mon Sep 17 00:00:00 2001 From: v2ray Date: Thu, 18 Feb 2016 11:36:21 +0100 Subject: [PATCH] don't log warning when not accepting anymore. --- transport/hub/tcp.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/transport/hub/tcp.go b/transport/hub/tcp.go index d9baadc03..e6a495aa3 100644 --- a/transport/hub/tcp.go +++ b/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{