mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 16:00:08 +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_;
|
||||
}
|
||||
|
||||
std::unique_lock lock(providerManager->refreshTimerMutex_);
|
||||
|
||||
if (providerManager->refreshEnabled_)
|
||||
{
|
||||
std::unique_lock lock(providerManager->refreshTimerMutex_);
|
||||
|
||||
logger_->debug(
|
||||
"[{}] Scheduled refresh in {:%M:%S}",
|
||||
providerManager->name(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue