Skip to content

Commit

Permalink
fix: proxy err handler
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouYixun committed Nov 25, 2022
1 parent 08030b4 commit 8a71272
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ var proxyCmd = &cobra.Command{
rInnerConn, err := device.NewConnect(remotePort)
if err != nil {
fmt.Println("connect to device fail")
os.Exit(0)
continue
}
rConn := rInnerConn.RawConn()
rConn.SetDeadline(time.Time{})
Expand Down
2 changes: 1 addition & 1 deletion cmd/run/wda.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func proxy() func(listener net.Listener, port int, device giDevice.Device) {
rInnerConn, err := device.NewConnect(port)
if err != nil {
fmt.Println("connect to device fail")
os.Exit(0)
continue
}
rConn := rInnerConn.RawConn()
rConn.SetDeadline(time.Time{})
Expand Down

0 comments on commit 8a71272

Please sign in to comment.