summaryrefslogtreecommitdiff
path: root/platform/qt/src/run_loop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/qt/src/run_loop.cpp')
-rw-r--r--platform/qt/src/run_loop.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/platform/qt/src/run_loop.cpp b/platform/qt/src/run_loop.cpp
index 71ea19032a..af0c50ebb9 100644
--- a/platform/qt/src/run_loop.cpp
+++ b/platform/qt/src/run_loop.cpp
@@ -53,8 +53,10 @@ LOOP_HANDLE RunLoop::getLoopHandle() {
}
void RunLoop::push(std::shared_ptr<WorkTask> task) {
- withMutex([&] { queue.push(task); });
- impl->async->send();
+ withMutex([&] {
+ queue.push(std::move(task));
+ impl->async->send();
+ });
}
void RunLoop::run() {