Build fix.
This commit is contained in:
parent
6867922d9e
commit
d8783b14eb
2 changed files with 14 additions and 9 deletions
|
@ -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++);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue