Skip to content

Commit

Permalink
fix: MIXER COMMIT on channel 2 #1505
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Nov 13, 2023
1 parent 81ea12d commit be93054
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/protocol/amcp/AMCPCommandsImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -818,11 +818,12 @@ class transforms_applier

std::future<void> commit_deferred()
{
const auto f = ctx_.channel.stage->apply_transforms(deferred_transforms_[ctx_.channel_index]).share();
const int channel_index = ctx_.channel_index;
const auto f = ctx_.channel.stage->apply_transforms(deferred_transforms_[channel_index]).share();

return std::async(std::launch::deferred, [=]() {
f.get();
deferred_transforms_[ctx_.channel_index].clear();
deferred_transforms_[channel_index].clear();
});
}

Expand Down

0 comments on commit be93054

Please sign in to comment.