diff --git a/repertory/librepertory/src/utils/polling.cpp b/repertory/librepertory/src/utils/polling.cpp index fd13fdce..ca8ecc79 100644 --- a/repertory/librepertory/src/utils/polling.cpp +++ b/repertory/librepertory/src/utils/polling.cpp @@ -32,12 +32,12 @@ void polling::frequency_thread( unique_mutex_lock lock(mutex_); auto futures = std::accumulate( items_.begin(), items_.end(), std::deque>{}, - [this, &freq](auto &&futures, auto &&item) { + [this, &freq](auto &&list, auto &&item) { if (item.second.freq != freq) { - return futures; + return list; } - futures.emplace_back( + list.emplace_back( std::async(std::launch::async, [this, &freq, item]() -> void { if (config_->get_event_level() == event_level::trace || freq != frequency::second) { @@ -50,7 +50,7 @@ void polling::frequency_thread( event_system::instance().raise(item.first); } })); - return futures; + return list; }); lock.unlock();