From 45fffd8534b56966db24491389f8bce1324970e6 Mon Sep 17 00:00:00 2001 From: Quentin Le Sceller Date: Mon, 3 Sep 2018 16:27:40 +0200 Subject: [PATCH] Missing logic in preferred peers (#1471) --- servers/src/grin/seed.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/servers/src/grin/seed.rs b/servers/src/grin/seed.rs index 191c695af..75fc03249 100644 --- a/servers/src/grin/seed.rs +++ b/servers/src/grin/seed.rs @@ -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(); } } }