Skip to content

Commit

Permalink
Capture ref to sceneStore
Browse files Browse the repository at this point in the history
  • Loading branch information
firthm01 committed May 15, 2024
1 parent ab7adb9 commit c4be512
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void MonitoringMetadataReceiver::handleReceive(std::error_code ec,
}
// Called by NNG callback on thread with small stack.
// Launch task in another thread to overcome stack limitation.
auto future = std::async(std::launch::async, [this, sceneStore]() {
auto future = std::async(std::launch::async, [this, &sceneStore]() {
handler_(sceneStore);
});
future.get(); //blocking
Expand Down

0 comments on commit c4be512

Please sign in to comment.