aboutsummaryrefslogtreecommitdiff
path: root/include/salticidae/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/salticidae/network.h')
-rw-r--r--include/salticidae/network.h2
1 files changed, 1 insertions, 1 deletions
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<O, _, __>::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);