aboutsummaryrefslogtreecommitdiff
path: root/src/timedata.cpp
diff options
context:
space:
mode:
authorGregory Maxwell <[email protected]>2016-11-29 09:46:19 +0000
committerGregory Maxwell <[email protected]>2016-12-03 07:17:34 +0000
commite3ba0ef95636290a3bb597ddd25d13ea13b034aa (patch)
tree41f2d20d968a2437bdde4ac3a3ded4700220fb4f /src/timedata.cpp
parentMake QT runawayException call GetWarnings instead of directly access strMiscW... (diff)
downloaddiscoin-e3ba0ef95636290a3bb597ddd25d13ea13b034aa.tar.xz
discoin-e3ba0ef95636290a3bb597ddd25d13ea13b034aa.zip
Eliminate data races for strMiscWarning and fLargeWork*Found.
This moves all access to these datastructures through accessor functions and protects them with a lock.
Diffstat (limited to 'src/timedata.cpp')
-rw-r--r--src/timedata.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timedata.cpp b/src/timedata.cpp
index 25fc49412..256c91016 100644
--- a/src/timedata.cpp
+++ b/src/timedata.cpp
@@ -103,8 +103,8 @@ void AddTimeData(const CNetAddr& ip, int64_t nOffsetSample)
if (!fMatch)
{
fDone = true;
- string strMessage = strprintf(_("Please check that your computer's date and time are correct! If your clock is wrong, %s will not work properly."), _(PACKAGE_NAME));
- strMiscWarning = strMessage;
+ std::string strMessage = strprintf(_("Please check that your computer's date and time are correct! If your clock is wrong, %s will not work properly."), _(PACKAGE_NAME));
+ SetMiscWarning(strMessage);
uiInterface.ThreadSafeMessageBox(strMessage, "", CClientUIInterface::MSG_WARNING);
}
}