Commit 1067b3bf authored by Mathieu Stefani's avatar Mathieu Stefani

Async: fixed an ICE in gcc 4.6

parent 71a467ce
...@@ -350,12 +350,11 @@ namespace Async { ...@@ -350,12 +350,11 @@ namespace Async {
void finishResolve(P& promise) const { void finishResolve(P& promise) const {
auto chainer = makeChainer(promise); auto chainer = makeChainer(promise);
promise.then(std::move(chainer), [=](std::exception_ptr exc) { promise.then(std::move(chainer), [=](std::exception_ptr exc) {
chain_->exc = std::move(exc); auto core = this->chain_;
chain_->state = State::Rejected; core->exc = std::move(exc);
core->state = State::Rejected;
auto core = chain_; for (const auto& req: core->requests) {
for (const auto& req: chain_->requests) {
req->reject(core); req->reject(core);
} }
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment