diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-07-07 10:00:34 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-07-07 10:00:34 -0700 |
| commit | 778c7e6e703353030e2ea130e3db7cc968a5d53c (patch) | |
| tree | d9e8672cec00aef9e9403afb40563faa37d88b54 /node/OutboundMulticast.cpp | |
| parent | c863ff3f02e9d68eb9bea32160d252eaddb7f1f5 (diff) | |
| download | infinitytier-778c7e6e703353030e2ea130e3db7cc968a5d53c.tar.gz infinitytier-778c7e6e703353030e2ea130e3db7cc968a5d53c.zip | |
More cleanup to direct path push, comment fixes, etc.
Diffstat (limited to 'node/OutboundMulticast.cpp')
| -rw-r--r-- | node/OutboundMulticast.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/node/OutboundMulticast.cpp b/node/OutboundMulticast.cpp index 5809504a..46116c07 100644 --- a/node/OutboundMulticast.cpp +++ b/node/OutboundMulticast.cpp @@ -102,13 +102,9 @@ void OutboundMulticast::init( void OutboundMulticast::sendOnly(const RuntimeEnvironment *RR,const Address &toAddr) { - SharedPtr<Network> network(RR->node->network(_nwid)); - - if (!network) - return; - if (_haveCom) { - if (network->peerNeedsOurMembershipCertificate(toAddr,RR->node->now())) { + SharedPtr<Network> network(RR->node->network(_nwid)); + if ((network)&&(network->peerNeedsOurMembershipCertificate(toAddr,RR->node->now()))) { _packetWithCom.newInitializationVector(); _packetWithCom.setDestination(toAddr); //TRACE(">>MC %.16llx -> %s (with COM)",(unsigned long long)this,toAddr.toString().c_str()); |
