forked from boostorg/beast
Don't use a moved-from handler:
close #1560 * Obtain the executor from the handler prior to transferring ownership.
This commit is contained in:
1 parent
ea40d0262a
commit
7e78863074
2 files changed
+8
-1
No files matched your search
@@ -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