diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-01-18 16:06:06 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-01-18 16:06:06 +0100 |
commit | ec16f3b92d6017462f4bba8354b53d1707850430 (patch) | |
tree | 520f8ba123b6b9d3beead8b076d9bf17dddf2b2c /common/resourcecontrol.cpp | |
parent | adfaf8c33ccc3976aa2a0109b7d54b87efdbbfe1 (diff) | |
download | sink-ec16f3b92d6017462f4bba8354b53d1707850430.tar.gz sink-ec16f3b92d6017462f4bba8354b53d1707850430.zip |
Actually flush the replay queue
Diffstat (limited to 'common/resourcecontrol.cpp')
-rw-r--r-- | common/resourcecontrol.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/common/resourcecontrol.cpp b/common/resourcecontrol.cpp index b24c902..1f61a1c 100644 --- a/common/resourcecontrol.cpp +++ b/common/resourcecontrol.cpp | |||
@@ -122,12 +122,15 @@ KAsync::Job<void> ResourceControl::flush(Flush::FlushType type, const QByteArray | |||
122 | 122 | ||
123 | KAsync::Job<void> ResourceControl::flushReplayQueue(const QByteArrayList &resourceIdentifier) | 123 | KAsync::Job<void> ResourceControl::flushReplayQueue(const QByteArrayList &resourceIdentifier) |
124 | { | 124 | { |
125 | return flushMessageQueue(resourceIdentifier); | 125 | return KAsync::value(resourceIdentifier) |
126 | .template each([](const QByteArray &resource) { | ||
127 | return flushReplayQueue(resource); | ||
128 | }); | ||
126 | } | 129 | } |
127 | 130 | ||
128 | KAsync::Job<void> ResourceControl::flushReplayQueue(const QByteArray &resourceIdentifier) | 131 | KAsync::Job<void> ResourceControl::flushReplayQueue(const QByteArray &resourceIdentifier) |
129 | { | 132 | { |
130 | return flushReplayQueue(QByteArrayList() << resourceIdentifier); | 133 | return flush(Flush::FlushReplayQueue, resourceIdentifier); |
131 | } | 134 | } |
132 | 135 | ||
133 | template <class DomainType> | 136 | template <class DomainType> |