summaryrefslogtreecommitdiffstats
path: root/common/resourcecontrol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/resourcecontrol.cpp')
-rw-r--r--common/resourcecontrol.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/common/resourcecontrol.cpp b/common/resourcecontrol.cpp
index 4a6f9b4..83558bd 100644
--- a/common/resourcecontrol.cpp
+++ b/common/resourcecontrol.cpp
@@ -53,9 +53,7 @@ KAsync::Job<void> ResourceControl::shutdown(const QByteArray &identifier)
53 [](int, const QString &) { 53 [](int, const QString &) {
54 Trace() << "Resource is already closed."; 54 Trace() << "Resource is already closed.";
55 //Resource isn't started, nothing to shutdown 55 //Resource isn't started, nothing to shutdown
56 }) 56 });
57 //FIXME JOBAPI this is only required because we don't care about the return value of connectToServer
58 .template then<void>([](){});
59} 57}
60 58
61KAsync::Job<void> ResourceControl::start(const QByteArray &identifier) 59KAsync::Job<void> ResourceControl::start(const QByteArray &identifier)
@@ -81,9 +79,7 @@ KAsync::Job<void> ResourceControl::flushMessageQueue(const QByteArrayList &resou
81 resourceAccess->synchronizeResource(false, true).then<void>([&future, resourceAccess]() { 79 resourceAccess->synchronizeResource(false, true).then<void>([&future, resourceAccess]() {
82 future.setFinished(); 80 future.setFinished();
83 }).exec(); 81 }).exec();
84 }) 82 });
85 //FIXME JOBAPI this is only required because we don't care about the return value of each (and each shouldn't even have a return value)
86 .template then<void>([](){});
87} 83}
88 84
89KAsync::Job<void> ResourceControl::flushReplayQueue(const QByteArrayList &resourceIdentifier) 85KAsync::Job<void> ResourceControl::flushReplayQueue(const QByteArrayList &resourceIdentifier)