diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-05-22 15:46:06 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-05-22 15:46:06 -0700 |
| commit | d8783b14eb465cd97950afd726e940bbe3708c8a (patch) | |
| tree | af62170c9e63b68bea404403183613af17cdf865 /node | |
| parent | 6867922d9e33cd6091a86cae6d013a7bbbd125a6 (diff) | |
| download | infinitytier-d8783b14eb465cd97950afd726e940bbe3708c8a.tar.gz infinitytier-d8783b14eb465cd97950afd726e940bbe3708c8a.zip | |
Build fix.
Diffstat (limited to 'node')
| -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 aadbafa0..4bdf2d84 100644 --- a/node/Switch.cpp +++ b/node/Switch.cpp @@ -454,7 +454,7 @@ unsigned long Switch::doTimerTasks(uint64_t now) if (p < 0xffff) { tmpaddr.setPort((unsigned int)p); qi->peer->attemptToContactAt(RR,tmpaddr,now); - } + } else qi->strategyIteration = 9; } else if (qi->strategyIteration <= 18) { // Strategies 10-18: try ports below InetAddress tmpaddr(qi->inaddr); @@ -462,7 +462,7 @@ unsigned long Switch::doTimerTasks(uint64_t now) if (p >= 1024) { tmpaddr.setPort((unsigned int)p); qi->peer->attemptToContactAt(RR,tmpaddr,now); - } + } else qi->strategyIteration = 18; } else { // All strategies tried, expire entry _contactQueue.erase(qi++); |
