mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-25 06:56:15 +02:00
fix warnings
This commit is contained in:
parent
24b357287c
commit
9fe8c61c3b
2 changed files with 2 additions and 2 deletions
|
@ -312,7 +312,7 @@ void ControlSessionHttp::sendAsync(const std::string& message)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
auto self(shared_from_this());
|
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)
|
if (ec)
|
||||||
{
|
{
|
||||||
LOG(ERROR) << "Error while writing to control socket: " << ec.message() << "\n";
|
LOG(ERROR) << "Error while writing to control socket: " << ec.message() << "\n";
|
||||||
|
|
|
@ -90,7 +90,7 @@ void ControlSessionTcp::stop()
|
||||||
void ControlSessionTcp::sendAsync(const std::string& message)
|
void ControlSessionTcp::sendAsync(const std::string& message)
|
||||||
{
|
{
|
||||||
auto self(shared_from_this());
|
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)
|
if (ec)
|
||||||
{
|
{
|
||||||
LOG(ERROR) << "Error while writing to control socket: " << ec.message() << "\n";
|
LOG(ERROR) << "Error while writing to control socket: " << ec.message() << "\n";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue