aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2014-05-20 21:45:12 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-05-21 14:15:42 +0200
commit2585310a2245b6ebffed3fe1318674b2f8eb5b82 (patch)
tree5c002294256c02ff6d28dc69948f1e30d44c32ba
parentac1dd87f335923a1a29839e3d81334cc32d9126e (diff)
downloadbitcoin-2585310a2245b6ebffed3fe1318674b2f8eb5b82.tar.xz
Add missing LOCK(cs_main)
Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com> Rebased-From: 305ccaa
-rw-r--r--src/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 463ac61778..0b5455858a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -3379,7 +3379,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();
+ }