mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-02 07:25:19 -05:00
Continue to work even if failed to accept connection
This commit is contained in:
@@ -49,7 +49,7 @@ func (server *SocksServer) AcceptConnections(listener net.Listener) {
|
||||
connection, err := listener.Accept()
|
||||
if err != nil {
|
||||
log.Error("Socks failed to accept new connection %v", err)
|
||||
return
|
||||
continue
|
||||
}
|
||||
go server.HandleConnection(connection)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user