Skip to content

Commit

Permalink
continue to work even if failed to accept connection
Browse files Browse the repository at this point in the history
  • Loading branch information
DarienRaymond committed Oct 11, 2015
1 parent bc6174d commit 9e078d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion proxy/vmess/vmessin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 9e078d5

Please sign in to comment.