Skip to content

Commit

Permalink
Return on tcp/accept failure
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Rana <[email protected]>
  • Loading branch information
vishr committed Apr 13, 2018
1 parent 13ff7bc commit 852cdba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (t *Tunnel) Create() {
in, err := ln.Accept()
if err != nil {
log.Printf("Failed to accept connection %v", err)
break
return
}

go func(in net.Conn) {
Expand Down

0 comments on commit 852cdba

Please sign in to comment.