]> Git Repo - VerusCoin.git/commitdiff
Add missing LOCK(cs_main)
authorPieter Wuille <[email protected]>
Tue, 20 May 2014 19:45:12 +0000 (21:45 +0200)
committerPieter Wuille <[email protected]>
Tue, 20 May 2014 19:45:12 +0000 (21:45 +0200)
src/main.cpp

index c54fa65233a5f170502297cb463e3bfb89b0201b..a1fe6c07bcd33ad7b6cc5cc7e50697c59d461631 100644 (file)
@@ -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();
+    }
 
 
 
This page took 0.032634 seconds and 4 git commands to generate.