dht: add connectivityChanged()

This commit is contained in:
Adrien Béraud committed 2015-07-28 16:26:35 -04:00
1 parent 3f7d2df9b1
commit f13b28fed4
4 files changed
+35

No files matched your search

+11
View File
@@ -1705,6 +1705,17 @@ Dht::expireStorage()
}
}
void
Dht::connectivityChanged()
{
confirm_nodes_time = now;
mybucket_grow_time = now;
mybucket6_grow_time = now;
for (auto& s : searches)
for (auto& sn : s.nodes)
sn.listenStatus = {};
}
void
Dht::rotateSecrets()
{