mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
Missing logic in preferred peers (#1471)
This commit is contained in:
parent
0cbfeaab94
commit
45fffd8534
1 changed files with 3 additions and 1 deletions
|
@ -174,9 +174,11 @@ fn monitor_peers(
|
|||
Some(preferred_peers) => {
|
||||
for mut p in preferred_peers {
|
||||
if !connected_peers.is_empty() {
|
||||
if connected_peers.contains(&p) {
|
||||
if !connected_peers.contains(&p) {
|
||||
tx.send(p).unwrap();
|
||||
}
|
||||
} else {
|
||||
tx.send(p).unwrap();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue