From 2585310a2245b6ebffed3fe1318674b2f8eb5b82 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Tue, 20 May 2014 21:45:12 +0200 Subject: [PATCH] Add missing LOCK(cs_main) Rebased-By: Wladimir J. van der Laan Rebased-From: 305ccaa --- src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 463ac617787..0b5455858a5 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(); + }