forked from boostorg/beast
Don't copy the handler in write_some_op
This commit is contained in:
1 parent
3a5f2effc1
commit
5a53bd449a
2 files changed
+7
-1
No files matched your search
@@ -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_);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user