Skip to content

Commit

Permalink
fix for loop condition
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo committed Feb 18, 2025
1 parent ac99ec9 commit 78f5a75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/net/nat/internal/nat/nat.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func discoverNATs(ctx context.Context) ([]NAT, []error) {
var nats []NAT
var errs []error

for upnpCh != nil && pmpCh != nil {
for upnpCh != nil || pmpCh != nil {
select {
case res := <-pmpCh:
pmpCh = nil
Expand Down

0 comments on commit 78f5a75

Please sign in to comment.