diff --git a/Concurrency/AsyncTaskQueue.cpp b/Concurrency/AsyncTaskQueue.cpp index 66b0fdaa3..be63ca571 100644 --- a/Concurrency/AsyncTaskQueue.cpp +++ b/Concurrency/AsyncTaskQueue.cpp @@ -96,7 +96,6 @@ void DeferringAsyncTaskQueue::defer(std::function function) { void DeferringAsyncTaskQueue::perform() { if(!deferred_tasks_) return; auto deferred_tasks_raw = deferred_tasks_.release(); - deferred_tasks_.reset(); enqueue([deferred_tasks_raw] { std::unique_ptr>> deferred_tasks(deferred_tasks_raw); for(const auto &function : *deferred_tasks) {