mirror of
https://github.com/boostorg/beast.git
synced 2025-07-29 20:37:31 +02:00
Saved handlers are dispatched
This commit is contained in:
@ -5,6 +5,7 @@ Version 194:
|
||||
* Don't use-after-free in test
|
||||
* Tidy up ssl_stream (experimental)
|
||||
* Dynamic buffer improvements
|
||||
* Saved handlers are dispatched
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
@ -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_));
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user