mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -05:00
continue to work even if failed to accept connection
This commit is contained in:
parent
bc6174d4b5
commit
9e078d533d
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user