Fix test::stream async_result transformation:

close #1322

async initiating functions must return init.result.get(). Returning the
result of post caused a compilation failure for custom completion tokens.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
This commit is contained in:
Damian Jarek authored and Vinnie Falco committed 2018-11-26 16:02:44 -08:00
1 parent f8b3ae1186
commit 836042fd24
12 files changed
+65 -55

No files matched your search

+1 -1
View File
@@ -578,7 +578,7 @@ operator()(
BOOST_ASIO_CORO_YIELD
boost::asio::post(
ws_.get_executor(),
bind_front_handler(
beast::bind_front_handler(
std::move(*this),
ec, bytes_transferred_));
}