From da9410b41cf56340fd4a3e5148df704c9c0e139c Mon Sep 17 00:00:00 2001 From: Determinant Date: Sat, 22 Jun 2019 01:44:47 -0400 Subject: ... --- include/salticidae/network.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/salticidae/network.h b/include/salticidae/network.h index 0bae6c5..07c6ba5 100644 --- a/include/salticidae/network.h +++ b/include/salticidae/network.h @@ -775,7 +775,7 @@ void PeerNetwork::add_peer(const NetAddr &addr) { if (it != id2peer.end()) throw PeerNetworkError(SALTI_ERROR_PEER_ALREADY_EXISTS); auto it2 = id2upeer.find(addr); - if (it2 != id2peer.end()) + if (it2 != id2upeer.end()) { /* move to the known peer set */ auto p = std::move(it2->second); id2upeer.erase(it2); -- cgit v1.2.3-70-g09d2