aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2014-05-20 21:45:12 +0200
committerPieter Wuille <[email protected]>2014-05-20 21:45:12 +0200
commit305ccaa27551efa33fcaf637e76310654738f428 (patch)
tree3319e998dc962936127721f8b3e388c266d712d2 /src/main.cpp
parentMerge pull request #4197 (diff)
downloaddiscoin-305ccaa27551efa33fcaf637e76310654738f428.tar.xz
discoin-305ccaa27551efa33fcaf637e76310654738f428.zip
Add missing LOCK(cs_main)
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index c54fa6523..a1fe6c07b 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -3488,7 +3488,10 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
return true;
}
- State(pfrom->GetId())->nLastBlockProcess = GetTimeMicros();
+ {
+ LOCK(cs_main);
+ State(pfrom->GetId())->nLastBlockProcess = GetTimeMicros();
+ }