Skip to content

Commit

Permalink
udpclient: rewritten for better debug breakpoint support
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesDunne committed Jun 12, 2021
1 parent e813b8a commit 6c6b8df
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion udpclient/udpclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ func (c *UDPClient) WriteThenReadTimeout(m []byte, d time.Duration) (rsp []byte,
if err != nil {
return
}
return c.ReadTimeout(d)
rsp, err = c.ReadTimeout(d)
if err != nil {
return
}
return
}

func (c *UDPClient) Lock() {
Expand Down

0 comments on commit 6c6b8df

Please sign in to comment.