Browse Source

Merge pull request #4204

305ccaa Add missing LOCK(cs_main) (Pieter Wuille)
0.10
Wladimir J. van der Laan 11 years ago
parent
commit
8cd900711c
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 5
      src/main.cpp

5
src/main.cpp

@ -3488,7 +3488,10 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) @@ -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();
}

Loading…
Cancel
Save