mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-24 20:07:40 +02:00
Fix static analysis issues
This commit is contained in:
parent
03ce0ed2df
commit
17efc6799c
22 changed files with 56 additions and 62 deletions
|
@ -1,6 +1,6 @@
|
|||
/***
|
||||
This file is part of snapcast
|
||||
Copyright (C) 2014-2023 Johannes Pohl
|
||||
Copyright (C) 2014-2024 Johannes Pohl
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -74,7 +74,7 @@ void ControlSessionWebsocket::stop()
|
|||
void ControlSessionWebsocket::sendAsync(const std::string& message)
|
||||
{
|
||||
boost::asio::post(strand_,
|
||||
[this, self = shared_from_this(), msg = message]()
|
||||
[this, self = shared_from_this(), msg = message]() mutable
|
||||
{
|
||||
messages_.push_back(std::move(msg));
|
||||
if (messages_.size() > 1)
|
||||
|
@ -147,7 +147,7 @@ void ControlSessionWebsocket::on_read_ws(beast::error_code ec, std::size_t bytes
|
|||
if (!line.empty())
|
||||
{
|
||||
// LOG(DEBUG, LOG_TAG) << "received: " << line << "\n";
|
||||
if ((message_receiver_ != nullptr) && !line.empty())
|
||||
if (message_receiver_ != nullptr)
|
||||
{
|
||||
message_receiver_->onMessageReceived(shared_from_this(), line,
|
||||
[this](const std::string& response)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue