Fix for GitHub issue #38: compute whether we are ONLINE a little differently
This commit is contained in:
parent
b0277ab904
commit
4ec7cd2760
3 changed files with 13 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue