mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-07 13:03:45 +02:00
Build fix.
This commit is contained in:
parent
9f5bccec30
commit
07a480b37a
1 changed files with 2 additions and 1 deletions
|
@ -180,7 +180,7 @@ struct _processBackgroundTasks_ping_eachRoot
|
||||||
void *tPtr;
|
void *tPtr;
|
||||||
bool online;
|
bool online;
|
||||||
|
|
||||||
ZT_ALWAYS_INLINE void operator()(const SharedPtr<Peer> &peer,const std::vector<InetAddress> &addrs)
|
ZT_ALWAYS_INLINE bool operator()(const SharedPtr<Peer> &peer,const std::vector<InetAddress> &addrs)
|
||||||
{
|
{
|
||||||
unsigned int v4SendCount = 0,v6SendCount = 0;
|
unsigned int v4SendCount = 0,v6SendCount = 0;
|
||||||
peer->ping(tPtr,now,v4SendCount,v6SendCount);
|
peer->ping(tPtr,now,v4SendCount,v6SendCount);
|
||||||
|
@ -191,6 +191,7 @@ struct _processBackgroundTasks_ping_eachRoot
|
||||||
if (!online)
|
if (!online)
|
||||||
online = ((now - peer->lastReceive()) <= ((ZT_PEER_PING_PERIOD * 2) + 5000));
|
online = ((now - peer->lastReceive()) <= ((ZT_PEER_PING_PERIOD * 2) + 5000));
|
||||||
roots.set((void *)peer.ptr(),true);
|
roots.set((void *)peer.ptr(),true);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue