1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-17 23:06:30 -05:00

Continue to work even if failed to accept connection

This commit is contained in:
V2Ray 2015-10-11 22:44:48 +02:00
parent 0a1f5fe27e
commit bc6174d4b5

View File

@ -49,7 +49,7 @@ func (server *SocksServer) AcceptConnections(listener net.Listener) {
connection, err := listener.Accept() connection, err := listener.Accept()
if err != nil { if err != nil {
log.Error("Socks failed to accept new connection %v", err) log.Error("Socks failed to accept new connection %v", err)
return continue
} }
go server.HandleConnection(connection) go server.HandleConnection(connection)
} }