fix bug in findRelaysOnce: it connects to all relays
This commit is contained in:
parent
776a53a370
commit
abfb4c8901
|
@ -159,6 +159,9 @@ func (ar *AutoRelay) findRelaysOnce(ctx context.Context) bool {
|
|||
update := false
|
||||
for _, pi := range pis {
|
||||
update = ar.tryRelay(ctx, pi) || update
|
||||
if ar.numRelays() >= DesiredRelays {
|
||||
break
|
||||
}
|
||||
}
|
||||
return update
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue