This commit is contained in:
Adam Ierymenko 2019-09-16 19:58:21 -07:00
parent 07a480b37a
commit dde937e197
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3
3 changed files with 13 additions and 9 deletions

View file

@ -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;
}
};