浏览代码

Build fix.

Adam Ierymenko 6 年之前
父节点
当前提交
07a480b37a
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      node/Node.cpp

+ 2 - 1
node/Node.cpp

@@ -180,7 +180,7 @@ struct _processBackgroundTasks_ping_eachRoot
 	void *tPtr;
 	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;
 		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;
 	}
 };