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 {
void finishResolve(P& promise) const {
auto chainer = makeChainer(promise);
promise.then(std::move(chainer), [=](std::exception_ptr exc) {
chain_->exc = std::move(exc);
chain_->state = State::Rejected;
auto core = this->chain_;
core->exc = std::move(exc);
core->state = State::Rejected;
auto core = chain_;
for (const auto& req: chain_->requests) {
for (const auto& req: core->requests) {
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