diff --git a/src/devices/bus/ti99/peb/tipi.cpp b/src/devices/bus/ti99/peb/tipi.cpp index f4c7fc600c3..4b31f0ee24d 100644 --- a/src/devices/bus/ti99/peb/tipi.cpp +++ b/src/devices/bus/ti99/peb/tipi.cpp @@ -399,19 +399,19 @@ void tipi_card_device::open_websocket() m_wsclient = std::make_unique(shost); webpp::ws_client* wsc = m_wsclient.get(); wsc->on_open = - [wsc,this]() + [this]() { websocket_opened(); }; wsc->on_message = - [wsc,this](std::shared_ptr message) + [this](std::shared_ptr message) { websocket_incoming(message); }; wsc->on_close = - [wsc,this](int i, const std::string& msg) + [this](int i, const std::string& msg) { websocket_closed(i, msg); }; wsc->on_error = - [wsc,this](const std::error_code& code) + [this](const std::error_code& code) { websocket_error(code); }; m_send_stream = std::make_shared(); diff --git a/src/lib/util/client_ws.hpp b/src/lib/util/client_ws.hpp index 8f093d2b132..9488a1cf12b 100644 --- a/src/lib/util/client_ws.hpp +++ b/src/lib/util/client_ws.hpp @@ -363,7 +363,7 @@ namespace webpp { if(first_bytes[1]>=128) { const std::string reason("message from server masked"); auto kept_connection=connection; - send_close(1002, reason, [this, kept_connection](const std::error_code& /*ec*/) {}); + send_close(1002, reason, [](const std::error_code& /*ec*/) {}); if(on_close) on_close(1002, reason); return; @@ -441,7 +441,7 @@ namespace webpp { auto reason=message->string(); auto kept_connection=connection; - send_close(status, reason, [this, kept_connection](const std::error_code& /*ec*/) {}); + send_close(status, reason, [](const std::error_code& /*ec*/) {}); if(on_close) on_close(status, reason); return;