diff options
| author | Pieter Wuille <[email protected]> | 2014-05-20 21:45:12 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2014-05-20 21:45:12 +0200 |
| commit | 305ccaa27551efa33fcaf637e76310654738f428 (patch) | |
| tree | 3319e998dc962936127721f8b3e388c266d712d2 /src/main.cpp | |
| parent | Merge pull request #4197 (diff) | |
| download | discoin-305ccaa27551efa33fcaf637e76310654738f428.tar.xz discoin-305ccaa27551efa33fcaf637e76310654738f428.zip | |
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 c54fa6523..a1fe6c07b 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(); + } |