Saved handlers are dispatched

This commit is contained in:
Vinnie Falco committed 2018-12-01 04:40:59 -08:00
1 parent 29cf6ce61f
commit f18764424c
2 files changed
+4 -1

No files matched your search

@@ -11,7 +11,9 @@
#define BOOST_BEAST_CORE_DETAIL_SAVED_HANDLER_HPP
#include <boost/beast/core/bind_handler.hpp>
#include <boost/asio/dispatch.hpp>
#include <memory>
#include <utility>
namespace boost {
namespace beast {
@@ -39,7 +41,7 @@ class saved_handler
void operator()() override
{
h_();
boost::asio::dispatch(std::move(h_));
}
};