Skip to content

Commit 852cdba

Browse files
committed
Return on tcp/accept failure
Signed-off-by: Vishal Rana <vr@labstack.com>
1 parent 13ff7bc commit 852cdba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tunnel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func (t *Tunnel) Create() {
122122
in, err := ln.Accept()
123123
if err != nil {
124124
log.Printf("Failed to accept connection %v", err)
125-
break
125+
return
126126
}
127127

128128
go func(in net.Conn) {

0 commit comments

Comments
 (0)