diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-10-11 17:32:30 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-10-11 17:32:30 +0200 |
commit | c3a20160d4ff52c8ec288f6a42f7e136064fb493 (patch) | |
tree | 866ff1850a7c160ed39494a989f18aef182d2d2f /common/facade.h | |
parent | d6e6cab8b284167a9c8fd30ae669354d8315b3aa (diff) | |
download | sink-c3a20160d4ff52c8ec288f6a42f7e136064fb493.tar.gz sink-c3a20160d4ff52c8ec288f6a42f7e136064fb493.zip |
Replay removals.
Now we just have to avoid removing the revision too early from the
resource.
Diffstat (limited to 'common/facade.h')
-rw-r--r-- | common/facade.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/common/facade.h b/common/facade.h index 5ed3bde..38388c7 100644 --- a/common/facade.h +++ b/common/facade.h | |||
@@ -54,11 +54,8 @@ public: | |||
54 | { | 54 | { |
55 | //TODO: JOBAPI: that last empty .then should not be necessary | 55 | //TODO: JOBAPI: that last empty .then should not be necessary |
56 | //TODO: remove newRevision | 56 | //TODO: remove newRevision |
57 | if (mLatestRevision == newRevision && mLatestRevision > 0) { | 57 | return queryFunction(mLatestRevision + 1).then<void, qint64>([this](qint64 revision) { |
58 | return KAsync::null<void>(); | 58 | mLatestRevision = revision; |
59 | } | ||
60 | return queryFunction(mLatestRevision).then<void, qint64>([this](qint64 revision) { | ||
61 | mLatestRevision = revision + 1; | ||
62 | }).then<void>([](){}); | 59 | }).then<void>([](){}); |
63 | } | 60 | } |
64 | 61 | ||