Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
lspgn committed May 19, 2024
1 parent 7f450b6 commit 9fc1d30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/udp.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (r *UDPReceiver) receive(addr string, port int, started chan bool) error {

udpconn, ok := pconn.(*net.UDPConn)
if !ok {
return err
return fmt.Errorf("not a udp connection")
}

return r.receiveRoutine(udpconn)
Expand Down

0 comments on commit 9fc1d30

Please sign in to comment.