summaryrefslogtreecommitdiff
path: root/node/Topology.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/Topology.cpp')
-rw-r--r--node/Topology.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/node/Topology.cpp b/node/Topology.cpp
index 75784849..6390a338 100644
--- a/node/Topology.cpp
+++ b/node/Topology.cpp
@@ -210,7 +210,10 @@ void Topology::clean()
for(std::map< Address,SharedPtr<Peer> >::iterator p(_activePeers.begin());p!=_activePeers.end();) {
if (((now - p->second->lastUsed()) >= ZT_PEER_IN_MEMORY_EXPIRATION)&&(!_supernodeAddresses.count(p->second->address())))
_activePeers.erase(p++);
- else ++p;
+ else {
+ p->second->clean(now);
+ ++p;
+ }
}
}