diff options
author | Determinant <[email protected]> | 2019-06-22 01:44:47 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-06-22 01:44:47 -0400 |
commit | da9410b41cf56340fd4a3e5148df704c9c0e139c (patch) | |
tree | 8b0b3decff78da56ed051447f5482c539a2f6b00 /include | |
parent | 95257d41d0b946197093ad67657fb3d4f7f9030f (diff) |
...
Diffstat (limited to 'include')
-rw-r--r-- | include/salticidae/network.h | 2 |
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); |