diff options
| author | Cory Fields <[email protected]> | 2016-05-24 18:59:16 -0400 |
|---|---|---|
| committer | Cory Fields <[email protected]> | 2016-09-08 12:06:24 -0400 |
| commit | aaf018e3b79417ecfd39291a8c100df77969d77a (patch) | |
| tree | aebdb2c2dbdd1f2d0eb967222cc7f246b16c55d3 /src/main.cpp | |
| parent | net: move OpenNetworkConnection into CConnman (diff) | |
| download | discoin-aaf018e3b79417ecfd39291a8c100df77969d77a.tar.xz discoin-aaf018e3b79417ecfd39291a8c100df77969d77a.zip | |
net: handle nodesignals in CConnman
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 4dc9d71ee..bd85fa8f0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -348,7 +348,8 @@ void InitializeNode(NodeId nodeid, const CNode *pnode) { state.address = pnode->addr; } -void FinalizeNode(NodeId nodeid) { +void FinalizeNode(NodeId nodeid, bool& fUpdateConnectionTime) { + fUpdateConnectionTime = false; LOCK(cs_main); CNodeState *state = State(nodeid); @@ -356,7 +357,7 @@ void FinalizeNode(NodeId nodeid) { nSyncStarted--; if (state->nMisbehavior == 0 && state->fCurrentlyConnected) { - AddressCurrentlyConnected(state->address); + fUpdateConnectionTime = true; } BOOST_FOREACH(const QueuedBlock& entry, state->vBlocksInFlight) { |