diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-05-21 14:09:35 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-05-21 14:10:51 +0200 |
| commit | 8cd900711c0396ac3a96ffd40f43f0e9ec76fadb (patch) | |
| tree | c334919577ee8b716ec8193b29a49a0a24c4a246 /src/main.cpp | |
| parent | qt: Periodic language update (diff) | |
| parent | Add missing LOCK(cs_main) (diff) | |
| download | discoin-8cd900711c0396ac3a96ffd40f43f0e9ec76fadb.tar.xz discoin-8cd900711c0396ac3a96ffd40f43f0e9ec76fadb.zip | |
Merge pull request #4204
305ccaa Add missing LOCK(cs_main) (Pieter Wuille)
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(); + } |