aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2014-05-20 21:45:12 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2014-05-20 21:45:12 +0200
commit305ccaa27551efa33fcaf637e76310654738f428 (patch)
tree3319e998dc962936127721f8b3e388c266d712d2 /src/main.cpp
parent9d97e83bf677ce595c6b2dc5d6805c2fcb1bc05b (diff)
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 c54fa65233..a1fe6c07bc 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();
+ }