reference instead of copy, removing forgotten cout

This commit is contained in:
Simon Désaulniers authored and Adrien Béraud committed 2016-05-02 15:25:15 -04:00
1 parent 4aad11f003
commit ba5953bc6b
2 files changed
+1 -2

No files matched your search

+1 -1
View File
@@ -2576,7 +2576,7 @@ Dht::onError(std::shared_ptr<NetworkEngine::RequestStatus> status, DhtProtocolEx
//if (esr == searches.end()) return;
unsigned cleared = 0;
for (auto& srp : status->node->ss.ss_family == AF_INET ? searches4 : searches6) {
auto sr = srp.second;
auto& sr = srp.second;
for (auto& n : sr->nodes) {
if (n.node != status->node) continue;
cleared++;