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 a9121c2 commit e16927f
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 e16927f

Please sign in to comment.