summaryrefslogtreecommitdiff
path: root/http/websocket.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'http/websocket.hpp')
-rw-r--r--http/websocket.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/http/websocket.hpp b/http/websocket.hpp
index c36e579ea8..f17ee5e7d0 100644
--- a/http/websocket.hpp
+++ b/http/websocket.hpp
@@ -138,7 +138,7 @@ class ConnectionImpl : public Connection
// Perform the websocket upgrade
ws.async_accept(req, [this, self(shared_from_this())](
- boost::system::error_code ec) {
+ const boost::system::error_code& ec) {
if (ec)
{
BMCWEB_LOG_ERROR << "Error in ws.async_accept " << ec;
@@ -180,7 +180,7 @@ class ConnectionImpl : public Connection
{
ws.async_close(
{boost::beast::websocket::close_code::normal, msg},
- [self(shared_from_this())](boost::system::error_code ec) {
+ [self(shared_from_this())](const boost::system::error_code& ec) {
if (ec == boost::asio::error::operation_aborted)
{
return;