Skip to content

Commit

Permalink
fix: deferred mixer operations not being cleared #1503
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Nov 1, 2023
1 parent 0d8af51 commit 7cbc4a4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/protocol/amcp/AMCPCommandsImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1317,8 +1317,11 @@ std::wstring mixer_grid_command(command_context& ctx)
std::future<std::wstring> mixer_commit_command(command_context& ctx)
{
transforms_applier transforms(ctx);
auto r = transforms.commit_deferred().share();
return std::async(std::launch::deferred, [r]() -> std::wstring { return L"202 MIXER OK\r\n"; });
const auto r = transforms.commit_deferred().share();
return std::async(std::launch::deferred, [r]() -> std::wstring {
r.get();
return L"202 MIXER OK\r\n";
});
}

std::wstring mixer_clear_command(command_context& ctx)
Expand Down

0 comments on commit 7cbc4a4

Please sign in to comment.