diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-04-27 00:38:36 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-04-27 00:38:36 +0200 |
commit | a044a7f0ea054502fb8b6aedcfa213b192a7b05a (patch) | |
tree | b13f9f501352a1251a2ced52e8a09cffb6424d9b /common/facade.h | |
parent | 12539f35e385c9250cd67e387c67dbaff4de34f3 (diff) | |
download | sink-a044a7f0ea054502fb8b6aedcfa213b192a7b05a.tar.gz sink-a044a7f0ea054502fb8b6aedcfa213b192a7b05a.zip |
Fixed lifetime management of resultSet.
The resultSet remains valid for the duration of the thread.
We keep the thread running until the ResultEmitter is deleted.
Diffstat (limited to 'common/facade.h')
-rw-r--r-- | common/facade.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/common/facade.h b/common/facade.h index a5858d5..b6ae4a6 100644 --- a/common/facade.h +++ b/common/facade.h | |||
@@ -163,7 +163,6 @@ public: | |||
163 | load(query, addCallback).template then<void, qint64>([resultProvider, &future](qint64 queriedRevision) { | 163 | load(query, addCallback).template then<void, qint64>([resultProvider, &future](qint64 queriedRevision) { |
164 | //TODO set revision in result provider? | 164 | //TODO set revision in result provider? |
165 | //TODO update all existing results with new revision | 165 | //TODO update all existing results with new revision |
166 | resultProvider->complete(); | ||
167 | future.setValue(queriedRevision); | 166 | future.setValue(queriedRevision); |
168 | future.setFinished(); | 167 | future.setFinished(); |
169 | }).exec(); | 168 | }).exec(); |