fix warnings

This commit is contained in:
badaix 2019-10-19 22:22:43 +02:00
parent 24b357287c
commit 9fe8c61c3b
2 changed files with 2 additions and 2 deletions

View file

@ -312,7 +312,7 @@ void ControlSessionHttp::sendAsync(const std::string& message)
return;
auto self(shared_from_this());
ws_->async_write(boost::asio::buffer(message), [this, self](std::error_code ec, std::size_t length) {
ws_->async_write(boost::asio::buffer(message), [self](std::error_code ec, std::size_t length) {
if (ec)
{
LOG(ERROR) << "Error while writing to control socket: " << ec.message() << "\n";

View file

@ -90,7 +90,7 @@ void ControlSessionTcp::stop()
void ControlSessionTcp::sendAsync(const std::string& message)
{
auto self(shared_from_this());
boost::asio::async_write(socket_, boost::asio::buffer(message + "\r\n"), [this, self](std::error_code ec, std::size_t length) {
boost::asio::async_write(socket_, boost::asio::buffer(message + "\r\n"), [self](std::error_code ec, std::size_t length) {
if (ec)
{
LOG(ERROR) << "Error while writing to control socket: " << ec.message() << "\n";