aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2019-06-22 01:44:47 -0400
committerDeterminant <ted.sybil@gmail.com>2019-06-22 01:44:47 -0400
commitda9410b41cf56340fd4a3e5148df704c9c0e139c (patch)
tree8b0b3decff78da56ed051447f5482c539a2f6b00
parent95257d41d0b946197093ad67657fb3d4f7f9030f (diff)
...
-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);