Skip to content

Commit

Permalink
basic_stream: Fix call to net::dispatch
Browse files Browse the repository at this point in the history
Fixes #2925
  • Loading branch information
ashtum committed Sep 4, 2024
1 parent 21545db commit cbcf6cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/boost/beast/core/impl/basic_stream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@ class transfer_op
(isRead ? "basic_stream::async_read_some"
: "basic_stream::async_write_some")));

net::dispatch(this->get_immediate_executor(),
net::append(std::move(*this), ec, 0));
const auto ex = this->get_immediate_executor();
net::dispatch(ex, net::append(std::move(*this), ec, 0));
}

impl_->close();
Expand Down

0 comments on commit cbcf6cb

Please sign in to comment.