forked from organicmaps/organicmaps
should modify m_activeCommands when clearing the queue.
This commit is contained in:
parent
a870cf3646
commit
b146380d5e
1 changed files with 3 additions and 0 deletions
|
@ -227,7 +227,10 @@ namespace core
|
|||
|
||||
void CommandsQueue::Clear()
|
||||
{
|
||||
threads::ConditionGuard g(m_cond);
|
||||
size_t s = m_commands.Size();
|
||||
m_commands.Clear();
|
||||
m_activeCommands -= s;
|
||||
}
|
||||
|
||||
int CommandsQueue::ExecutorsCount() const
|
||||
|
|
Loading…
Add table
Reference in a new issue