Commit 8bfce3ed authored by Andrii Grynenko's avatar Andrii Grynenko Committed by Facebook Github Bot

Fix ASAN failure in FutureDAG test

Summary: dogscience

Reviewed By: yfeldblum

Differential Revision: D6387604

fbshipit-source-id: 3e33da3e3c6801d6e2186637c8fb6adaf1eef6f6
parent f9953b79
...@@ -134,10 +134,9 @@ class FutureDAG : public std::enable_shared_from_this<FutureDAG> { ...@@ -134,10 +134,9 @@ class FutureDAG : public std::enable_shared_from_this<FutureDAG> {
} }
nodes[sourceHandle].promise.setValue(); nodes[sourceHandle].promise.setValue();
auto that = shared_from_this(); return nodes[sinkHandle].promise.getFuture().then(
return nodes[sinkHandle].promise.getFuture().ensure([that] {}).then( [that = shared_from_this(), sourceHandle, sinkHandle]() {
[this, sourceHandle, sinkHandle]() { that->clean_state(sourceHandle, sinkHandle);
clean_state(sourceHandle, sinkHandle);
}); });
} }
......
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