Don't copy the handler in write_some_op

This commit is contained in:
Christos Stratopoulos authored and Vinnie Falco committed 2018-02-28 13:20:56 -08:00
1 parent 3a5f2effc1
commit 5a53bd449a
2 files changed
+7 -1

No files matched your search

+1 -1
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_);
}
}