From 07a480b37a36e8b2a5beed7d24f4dc33d4e847a8 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 16 Sep 2019 18:04:32 -0700 Subject: [PATCH] Build fix. --- node/Node.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node/Node.cpp b/node/Node.cpp index af9cff8cd..fccfb01c7 100644 --- a/node/Node.cpp +++ b/node/Node.cpp @@ -180,7 +180,7 @@ struct _processBackgroundTasks_ping_eachRoot void *tPtr; bool online; - ZT_ALWAYS_INLINE void operator()(const SharedPtr &peer,const std::vector &addrs) + ZT_ALWAYS_INLINE bool operator()(const SharedPtr &peer,const std::vector &addrs) { unsigned int v4SendCount = 0,v6SendCount = 0; peer->ping(tPtr,now,v4SendCount,v6SendCount); @@ -191,6 +191,7 @@ struct _processBackgroundTasks_ping_eachRoot if (!online) online = ((now - peer->lastReceive()) <= ((ZT_PEER_PING_PERIOD * 2) + 5000)); roots.set((void *)peer.ptr(),true); + return true; } };