Skip to content

Commit

Permalink
fix error handling error
Browse files Browse the repository at this point in the history
  • Loading branch information
Tnze committed Jun 16, 2024
1 parent 7d54712 commit 2f003c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/pinglist.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func pingAndList(ctx context.Context, addr string, conn *mcnet.Conn) (data []byt
defer func() {
// Reset deadline
if err2 := conn.Socket.SetDeadline(time.Time{}); err2 != nil {
if err2 == nil {
if err == nil {
err = err2
}
return
Expand Down

0 comments on commit 2f003c5

Please sign in to comment.