Fixed error with BackgroundProcesssingPool [#METRIKASUPP-7484].

This commit is contained in:
Alexey Milovidov 2016-11-02 18:26:16 +03:00
parent 621da9c2f7
commit 8ba7a32410

View File

@ -185,7 +185,7 @@ void BackgroundProcessingPool::threadFunction()
std::unique_lock<std::mutex> lock(tasks_mutex);
if (task->removed)
return;
continue;
tasks.erase(task->iterator);
task->iterator = tasks.emplace(next_time_to_execute, task);