diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-07-28 11:43:09 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-07-28 11:43:09 -0700 |
| commit | 708aac1ea73a01fd81997a7215824dab832ba3d3 (patch) | |
| tree | c6a8833a5f18b28b4adabf35d9443de98c6a2dbe /node/Multicaster.cpp | |
| parent | 17bfd4d55e96390147e2804b81c08985816ac4cd (diff) | |
| download | infinitytier-708aac1ea73a01fd81997a7215824dab832ba3d3.tar.gz infinitytier-708aac1ea73a01fd81997a7215824dab832ba3d3.zip | |
Remove some left over debug code, and fix attempt to send to self if we are an active bridge.
Diffstat (limited to 'node/Multicaster.cpp')
| -rw-r--r-- | node/Multicaster.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/node/Multicaster.cpp b/node/Multicaster.cpp index 33424e4a..489c170b 100644 --- a/node/Multicaster.cpp +++ b/node/Multicaster.cpp @@ -211,9 +211,11 @@ void Multicaster::send( unsigned int count = 0; for(std::vector<Address>::const_iterator ast(alwaysSendTo.begin());ast!=alwaysSendTo.end();++ast) { - out.sendOnly(RR,*ast); - if (++count >= limit) - break; + if (*ast != RR->identity.address()) { + out.sendOnly(RR,*ast); + if (++count >= limit) + break; + } } unsigned long idx = 0; @@ -264,9 +266,11 @@ void Multicaster::send( unsigned int count = 0; for(std::vector<Address>::const_iterator ast(alwaysSendTo.begin());ast!=alwaysSendTo.end();++ast) { - out.sendAndLog(RR,*ast); - if (++count >= limit) - break; + if (*ast != RR->identity.address()) { + out.sendAndLog(RR,*ast); + if (++count >= limit) + break; + } } unsigned long idx = 0; |
