diff options
| author | Matt Corallo <[email protected]> | 2017-02-06 12:08:31 -0500 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2017-02-10 11:32:41 -0500 |
| commit | 22b4966a29501c4f3f2e970ac5008fbd91e665a9 (patch) | |
| tree | 2beb02b98598c74d44f4471bf157405804b7c321 /src/net.cpp | |
| parent | Make nServices atomic (diff) | |
| download | discoin-22b4966a29501c4f3f2e970ac5008fbd91e665a9.tar.xz discoin-22b4966a29501c4f3f2e970ac5008fbd91e665a9.zip | |
Move [clean|str]SubVer writes/copyStats into a lock
Diffstat (limited to 'src/net.cpp')
| -rw-r--r-- | src/net.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp index ea8a2a0a4..e7521f86d 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -610,7 +610,10 @@ void CNode::copyStats(CNodeStats &stats) X(nTimeOffset); X(addrName); X(nVersion); - X(cleanSubVer); + { + LOCK(cs_SubVer); + X(cleanSubVer); + } X(fInbound); X(fAddnode); X(nStartingHeight); |