cleanup
This commit is contained in:
parent
07a480b37a
commit
dde937e197
3 changed files with 13 additions and 9 deletions
|
@ -201,12 +201,13 @@ struct _processBackgroundTasks_ping_eachPeer
|
|||
void *tPtr;
|
||||
Hashtable< void *,bool > *roots;
|
||||
|
||||
ZT_ALWAYS_INLINE void operator()(const SharedPtr<Peer> &peer)
|
||||
ZT_ALWAYS_INLINE bool operator()(const SharedPtr<Peer> &peer)
|
||||
{
|
||||
if (!roots->contains((void *)peer.ptr())) {
|
||||
unsigned int v4SendCount = 0,v6SendCount = 0;
|
||||
peer->ping(tPtr,now,v4SendCount,v6SendCount);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue