diff options
Diffstat (limited to 'async/src')
-rw-r--r-- | async/src/async.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/async/src/async.h b/async/src/async.h index a2a11ac..753a44f 100644 --- a/async/src/async.h +++ b/async/src/async.h | |||
@@ -342,6 +342,7 @@ void ThenExecutor<Out, In ...>::previousFutureReady() | |||
342 | if (this->mPrevFuture && this->mPrevFuture->errorCode()) { | 342 | if (this->mPrevFuture && this->mPrevFuture->errorCode()) { |
343 | if (this->mErrorFunc) { | 343 | if (this->mErrorFunc) { |
344 | this->mErrorFunc(this->mPrevFuture->errorCode(), this->mPrevFuture->errorMessage()); | 344 | this->mErrorFunc(this->mPrevFuture->errorCode(), this->mPrevFuture->errorMessage()); |
345 | this->mResult->setFinished(); | ||
345 | } else { | 346 | } else { |
346 | static_cast<Async::Future<Out>*>(this->mResult)->setError(this->mPrevFuture->errorCode(), this->mPrevFuture->errorMessage()); | 347 | static_cast<Async::Future<Out>*>(this->mResult)->setError(this->mPrevFuture->errorCode(), this->mPrevFuture->errorMessage()); |
347 | //propagate error if no error handler is available | 348 | //propagate error if no error handler is available |