mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 12:28:42 +00:00
reference instead of copy, removing forgotten cout
This commit is contained in:
1 parent
4aad11f003
commit
ba5953bc6b
2 files changed
+1
-2
No files matched your search
+1
-1
@@ -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++;
|
||||
|
||||
Reference in new issue
Block a user