diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-04-02 17:17:16 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-04-02 17:17:16 +0200 |
commit | 93f224b1f6ca0a69a5c4610466baa43b43d042e3 (patch) | |
tree | 6c6d5063e2814a8630f173b45ea954687b819907 /common/clientapi.h | |
parent | 4707e725cefbf58b9f66c860680e94e6bdb9001f (diff) | |
download | sink-93f224b1f6ca0a69a5c4610466baa43b43d042e3.tar.gz sink-93f224b1f6ca0a69a5c4610466baa43b43d042e3.zip |
async simplifications
Diffstat (limited to 'common/clientapi.h')
-rw-r--r-- | common/clientapi.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/clientapi.h b/common/clientapi.h index f015b56..63305ab 100644 --- a/common/clientapi.h +++ b/common/clientapi.h | |||
@@ -438,10 +438,9 @@ public: | |||
438 | }).exec(); | 438 | }).exec(); |
439 | }); | 439 | }); |
440 | } | 440 | } |
441 | job.then<void>([/* eventloop, */resultSet](Async::Future<void> &future) { | 441 | job.then<void>([resultSet]() { |
442 | qDebug() << "Query complete"; | 442 | qDebug() << "Query complete"; |
443 | resultSet->complete(); | 443 | resultSet->complete(); |
444 | future.setFinished(); | ||
445 | }).exec().waitForFinished(); //We use the eventloop provided by waitForFinished to keep the thread alive until all is done | 444 | }).exec().waitForFinished(); //We use the eventloop provided by waitForFinished to keep the thread alive until all is done |
446 | }); | 445 | }); |
447 | return resultSet->emitter(); | 446 | return resultSet->emitter(); |