diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2014-05-20 21:45:12 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2014-05-20 21:45:12 +0200 |
commit | 305ccaa27551efa33fcaf637e76310654738f428 (patch) | |
tree | 3319e998dc962936127721f8b3e388c266d712d2 /src/main.cpp | |
parent | 9d97e83bf677ce595c6b2dc5d6805c2fcb1bc05b (diff) |
Add missing LOCK(cs_main)
Diffstat (limited to 'src/main.cpp')
-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(); + } |