diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-10 15:46:37 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-10 15:46:37 +0100 |
commit | 06edec33607dac155dab2184adb425fa6057355d (patch) | |
tree | 82394cc1300c490fd679dfe1e262e77b83c74c0a /common/resourcecontrol.cpp | |
parent | f6cbafd5db9d75bda4e45d4c2ffb60e9cd174d9b (diff) | |
download | sink-06edec33607dac155dab2184adb425fa6057355d.tar.gz sink-06edec33607dac155dab2184adb425fa6057355d.zip |
Adapt to latest kasync version
Diffstat (limited to 'common/resourcecontrol.cpp')
-rw-r--r-- | common/resourcecontrol.cpp | 8 |
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 | ||
61 | KAsync::Job<void> ResourceControl::start(const QByteArray &identifier) | 59 | KAsync::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 | ||
89 | KAsync::Job<void> ResourceControl::flushReplayQueue(const QByteArrayList &resourceIdentifier) | 85 | KAsync::Job<void> ResourceControl::flushReplayQueue(const QByteArrayList &resourceIdentifier) |