From 4ec7cd2760ae8e4b6502aad3400f1c4827a2cfbc Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 14 Feb 2014 16:23:03 -0800 Subject: Fix for GitHub issue #38: compute whether we are ONLINE a little differently --- node/RuntimeEnvironment.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'node/RuntimeEnvironment.hpp') diff --git a/node/RuntimeEnvironment.hpp b/node/RuntimeEnvironment.hpp index 05e10676..7969cc83 100644 --- a/node/RuntimeEnvironment.hpp +++ b/node/RuntimeEnvironment.hpp @@ -65,6 +65,7 @@ class RuntimeEnvironment public: RuntimeEnvironment() : shutdownInProgress(false), + timeOfLastNetworkEnvironmentChange(0), log((Logger *)0), prng((CMWC4096 *)0), mc((Multicaster *)0), @@ -93,6 +94,9 @@ public: // Indicates that we are shutting down -- this is hacky, want to factor out volatile bool shutdownInProgress; + // Time network environment (e.g. fingerprint) last changed -- used to determine online-ness + volatile uint64_t timeOfLastNetworkEnvironmentChange; + /* * Order matters a bit here. These are constructed in this order * and then deleted in the opposite order on Node exit. The order ensures -- cgit v1.2.3