mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-04 03:41:43 +02:00
Reformat code
This commit is contained in:
parent
c6518a4709
commit
e1c8250876
32 changed files with 505 additions and 351 deletions
|
@ -106,14 +106,16 @@ void ControlServer::onNewSession(std::shared_ptr<StreamSession> session)
|
|||
|
||||
void ControlServer::startAccept()
|
||||
{
|
||||
auto accept_handler_tcp = [this](error_code ec, tcp::socket socket) {
|
||||
auto accept_handler_tcp = [this](error_code ec, tcp::socket socket)
|
||||
{
|
||||
if (!ec)
|
||||
handleAccept<ControlSessionTcp>(std::move(socket));
|
||||
else
|
||||
LOG(ERROR, LOG_TAG) << "Error while accepting socket connection: " << ec.message() << "\n";
|
||||
};
|
||||
|
||||
auto accept_handler_http = [this](error_code ec, tcp::socket socket) {
|
||||
auto accept_handler_http = [this](error_code ec, tcp::socket socket)
|
||||
{
|
||||
if (!ec)
|
||||
handleAccept<ControlSessionHttp>(std::move(socket), http_settings_);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue