diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-05-21 14:09:35 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-05-21 14:10:51 +0200 |
commit | 8cd900711c0396ac3a96ffd40f43f0e9ec76fadb (patch) | |
tree | c334919577ee8b716ec8193b29a49a0a24c4a246 | |
parent | 6fcdad787f1fb381a3a0fe6b1a1e45477426dccb (diff) | |
parent | 305ccaa27551efa33fcaf637e76310654738f428 (diff) |
Merge pull request #4204
305ccaa Add missing LOCK(cs_main) (Pieter Wuille)
-rw-r--r-- | src/main.cpp | 5 |
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(); + } |