AntiRecursion cleanup and some other minor things.

This commit is contained in:
Adam Ierymenko 2016-01-06 10:59:39 -08:00
parent 05b2c0743f
commit 9aee72099e
3 changed files with 7 additions and 5 deletions

View file

@ -34,9 +34,9 @@ namespace ZeroTier {
bool Path::send(const RuntimeEnvironment *RR,const void *data,unsigned int len,uint64_t now)
{
RR->antiRec->logOutgoingZT(data,len);
if (RR->node->putPacket(_localAddress,address(),data,len)) {
sent(now);
RR->antiRec->logOutgoingZT(data,len);
return true;
}
return false;