From 9d278d80f196b13cc39ead85a700b9b4d32c970f Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 2 Jun 2022 16:50:59 -0400 Subject: [PATCH] Remove redundant `reset`. --- Concurrency/AsyncTaskQueue.cpp | 1 - 1 file changed, 1 deletion(-) 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) {