continue to work even if failed to accept connection

pull/40/head v0.8
V2Ray 2015-10-11 22:46:56 +02:00
parent bc6174d4b5
commit 9e078d533d
1 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,8 @@ func (handler *VMessInboundHandler) AcceptConnections(listener *net.TCPListener)
for handler.accepting {
connection, err := listener.AcceptTCP()
if err != nil {
return log.Error("Failed to accpet connection: %s", err.Error())
log.Error("Failed to accpet connection: %s", err.Error())
continue
}
go handler.HandleConnection(connection)
}