Don't use a moved-from handler:

close #1560

* Obtain the executor from the handler prior
  to transferring ownership.
This commit is contained in:
Simon Ebner authored and Vinnie Falco committed 2019-04-06 13:23:12 -07:00
1 parent ea40d0262a
commit 7e78863074
2 files changed
+8 -1

No files matched your search

+2 -1
View File
@@ -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)...)));