diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2022-03-20 16:15:58 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2022-03-20 16:15:58 -0400 |
commit | 6b088758c7f5545df0d97dc6e311c94a34114475 (patch) | |
tree | 3b25a518c43ba8497d597b6792f0d3ec20b08f63 /src/lib/util | |
parent | 6a91b86301735847652fe99e5df1a211169e1cea (diff) |
Fix clang error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture]
Diffstat (limited to 'src/lib/util')
-rw-r--r-- | src/lib/util/client_ws.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |