Skip to content
Snippets Groups Projects
Commit 18362064 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

dht: reset bootstrap period on connectivity change

Also starts a bootstrap if disconnected.
parent 341217cf
No related branches found
No related tags found
No related merge requests found
......@@ -1438,6 +1438,7 @@ Dht::connectivityChanged(sa_family_t af)
reported_addr.erase(std::remove_if(reported_addr.begin(), reported_addr.end(), [&](const ReportedAddr& addr){
return addr.second.getFamily() == af;
}), reported_addr.end());
startBootstrap(); // will only happen if disconnected
}
void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment