mirror of
https://github.com/boostorg/beast.git
synced 2025-07-29 20:37:31 +02:00
Don't use a moved-from handler:
close #1560 * Obtain the executor from the handler prior to transferring ownership.
This commit is contained in:
committed by
Vinnie Falco
parent
ea40d0262a
commit
7e78863074
@ -1,3 +1,9 @@
|
||||
Version 248:
|
||||
|
||||
* Don't use a moved-from handler
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Version 247:
|
||||
|
||||
* Fix async_base immediate completion
|
||||
|
@ -339,8 +339,9 @@ public:
|
||||
this->before_invoke_hook();
|
||||
if(! is_continuation)
|
||||
{
|
||||
auto const ex = get_executor();
|
||||
net::post(net::bind_executor(
|
||||
get_executor(),
|
||||
ex,
|
||||
beast::bind_front_handler(
|
||||
std::move(h_),
|
||||
std::forward<Args>(args)...)));
|
||||
|
Reference in New Issue
Block a user