From 63ec7e58d413aa4066764a9818c77c016cd9b8ff Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 8 Feb 2016 10:03:01 -0800 Subject: Make activity no longer a function of ping frequency, since this causes compatibility bugs when the latter was modified due to timer interactions with other versions. --- node/Path.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'node/Path.hpp') diff --git a/node/Path.hpp b/node/Path.hpp index 668728e0..be64f334 100644 --- a/node/Path.hpp +++ b/node/Path.hpp @@ -127,7 +127,7 @@ public: inline bool active(uint64_t now) const throw() { - return (((now - _lastReceived) < ZT_PEER_ACTIVITY_TIMEOUT)&&(_probation < ZT_PEER_DEAD_PATH_DETECTION_MAX_PROBATION)); + return (((now - _lastReceived) < ZT_PATH_ACTIVITY_TIMEOUT)&&(_probation < ZT_PEER_DEAD_PATH_DETECTION_MAX_PROBATION)); } /** -- cgit v1.2.3