Don't copy the handler in write_some_op

This commit is contained in:
Christos Stratopoulos
2018-02-28 15:14:47 -05:00
committed by Vinnie Falco
parent 3a5f2effc1
commit 5a53bd449a
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Version 161:
* Don't copy the handler in write_some_op
--------------------------------------------------------------------------------
Version 160:
* Examples clear the HTTP message before reading

View File

@ -561,7 +561,7 @@ operator()(
if(! cont_)
return boost::asio::post(
ws_.stream_.get_executor(),
bind_handler(h_, ec, bytes_transferred_));
bind_handler(std::move(h_), ec, bytes_transferred_));
h_(ec, bytes_transferred_);
}
}