mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 20:40:04 +00:00
Take a lock on the refresh timer mutex before checking whether refresh is enabled
This commit is contained in:
parent
0043283881
commit
75c4741d9a
1 changed files with 2 additions and 2 deletions
|
|
@ -794,10 +794,10 @@ void RadarProductManagerImpl::RefreshDataSync(
|
||||||
interval = kSlowRetryInterval_;
|
interval = kSlowRetryInterval_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::unique_lock lock(providerManager->refreshTimerMutex_);
|
||||||
|
|
||||||
if (providerManager->refreshEnabled_)
|
if (providerManager->refreshEnabled_)
|
||||||
{
|
{
|
||||||
std::unique_lock lock(providerManager->refreshTimerMutex_);
|
|
||||||
|
|
||||||
logger_->debug(
|
logger_->debug(
|
||||||
"[{}] Scheduled refresh in {:%M:%S}",
|
"[{}] Scheduled refresh in {:%M:%S}",
|
||||||
providerManager->name(),
|
providerManager->name(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue