Such ping logic. So edge case.
This commit is contained in:
parent
b1088a6bd7
commit
c96d3ebf8c
5 changed files with 82 additions and 27 deletions
|
@ -216,7 +216,7 @@ bool Peer::isTcpFailoverTime(const RuntimeEnvironment *_r,uint64_t now) const
|
|||
void Peer::clean(uint64_t now)
|
||||
{
|
||||
Mutex::Lock _l(_lock);
|
||||
unsigned long i = 0,o = 0,l = _paths.size();
|
||||
unsigned long i = 0,o = 0,l = (unsigned long)_paths.size();
|
||||
while (i != l) {
|
||||
if (_paths[i].active(now))
|
||||
_paths[o++] = _paths[i];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue