From e1882b614b48bf0c2a68223b3ee2fb338dbcb8f6 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 1 Oct 2014 14:05:25 -0700 Subject: Some cleanup, Multicaster now sends multicasts as it gets additional members. --- node/Node.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'node/Node.cpp') diff --git a/node/Node.cpp b/node/Node.cpp index 05a490b7..6682ad25 100644 --- a/node/Node.cpp +++ b/node/Node.cpp @@ -382,7 +382,7 @@ Node::ReasonForTermination Node::run() RR->http = new HttpClient(); RR->antiRec = new AntiRecursion(); - RR->mc = new Multicaster(); + RR->mc = new Multicaster(RR); RR->sw = new Switch(RR); RR->sm = new SocketManager(impl->udpPort,impl->tcpPort,&_CBztTraffic,RR); RR->topology = new Topology(RR,Utils::fileExists((RR->homePath + ZT_PATH_SEPARATOR_S + "iddb.d").c_str())); @@ -605,8 +605,8 @@ Node::ReasonForTermination Node::run() // Do periodic tasks in submodules. if ((now - lastClean) >= ZT_DB_CLEAN_PERIOD) { lastClean = now; - RR->topology->clean(); - RR->mc->clean(RR,now); + RR->topology->clean(now); + RR->mc->clean(now); RR->nc->clean(); if (RR->updater) RR->updater->checkIfMaxIntervalExceeded(now); -- cgit v1.2.3