This commit is contained in:
Adam Ierymenko 2014-09-24 09:01:58 -07:00
parent 61d0f27d2a
commit 9180a30986
9 changed files with 17 additions and 18 deletions

View file

@ -281,14 +281,13 @@ bool Network::isAllowed(const Address &peer) const
void Network::clean()
{
uint64_t now = Utils::now();
{
Mutex::Lock _l(_lock);
if (_destroyed)
return;
uint64_t now = Utils::now();
if ((_config)&&(_config->isPublic())) {
// Open (public) networks do not track certs or cert pushes at all.
_membershipCertificates.clear();
@ -318,7 +317,6 @@ void Network::clean()
else ++mg;
}
}
{
_multicastTopology.clean(now,*(_r->topology),(_config) ? _config->multicastLimit() : (unsigned int)ZT_DEFAULT_MULTICAST_LIMIT);
}