diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-03-10 19:52:08 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-03-10 19:52:08 -0800 |
commit | e3b1fc2ac060408b1c0ec61aa3215bc03ef18848 (patch) | |
tree | fc1c03fd0314263948e7b440626841c4813db46f /node/Switch.cpp | |
parent | 6194d2af3d22c9208998fba490126a2f1416df67 (diff) | |
download | infinitytier-e3b1fc2ac060408b1c0ec61aa3215bc03ef18848.tar.gz infinitytier-e3b1fc2ac060408b1c0ec61aa3215bc03ef18848.zip |
Tweak WHOIS path for federation.
Diffstat (limited to 'node/Switch.cpp')
-rw-r--r-- | node/Switch.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node/Switch.cpp b/node/Switch.cpp index 0392aec1..85103aa5 100644 --- a/node/Switch.cpp +++ b/node/Switch.cpp @@ -688,9 +688,9 @@ unsigned long Switch::doTimerTasks(uint64_t now) _outstandingWhoisRequests.erase(*a); } else { r->lastSent = now; - r->peersConsulted[r->retries] = _sendWhoisRequest(*a,r->peersConsulted,r->retries); - ++r->retries; + r->peersConsulted[r->retries] = _sendWhoisRequest(*a,r->peersConsulted,(r->retries > 1) ? r->retries : 0); TRACE("WHOIS %s (retry %u)",a->toString().c_str(),r->retries); + ++r->retries; nextDelay = std::min(nextDelay,(unsigned long)ZT_WHOIS_RETRY_DELAY); } } else { |