Skip to content

Commit

Permalink
fix(zipper): return nil when encounter a non-nil error (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyuschen committed Jun 23, 2022
1 parent 9144a80 commit c7bfc2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/server.go
Expand Up @@ -76,7 +76,7 @@ func (s *Server) ListenAndServe(ctx context.Context, addr string) error {
}
udpAddr, err := net.ResolveUDPAddr("udp", addr)
if err != nil {
return nil
return err
}
conn, err := net.ListenUDP("udp", udpAddr)
if err != nil {
Expand Down

0 comments on commit c7bfc2a

Please sign in to comment.