mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-25 23:16:14 +02:00
Reformat code
This commit is contained in:
parent
58e82ef9e8
commit
d5677b6f78
31 changed files with 236 additions and 330 deletions
|
@ -1,6 +1,6 @@
|
|||
/***
|
||||
This file is part of snapcast
|
||||
Copyright (C) 2014-2024 Johannes Pohl
|
||||
Copyright (C) 2014-2025 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
|
||||
|
@ -24,12 +24,10 @@
|
|||
#include "common/snap_exception.hpp"
|
||||
#include "common/str_compat.hpp"
|
||||
#include "common/utils/string_utils.hpp"
|
||||
#include "encoder/encoder_factory.hpp"
|
||||
|
||||
// 3rd party headers
|
||||
|
||||
// standard headers
|
||||
#include <cerrno>
|
||||
#include <memory>
|
||||
|
||||
|
||||
|
@ -75,9 +73,8 @@ void TcpStream::connect()
|
|||
|
||||
if (is_server_)
|
||||
{
|
||||
acceptor_->async_accept(
|
||||
[this](boost::system::error_code ec, tcp::socket socket)
|
||||
{
|
||||
acceptor_->async_accept([this](boost::system::error_code ec, tcp::socket socket)
|
||||
{
|
||||
if (!ec)
|
||||
{
|
||||
LOG(DEBUG, LOG_TAG) << "New client connection\n";
|
||||
|
@ -94,9 +91,8 @@ void TcpStream::connect()
|
|||
{
|
||||
stream_ = make_unique<tcp::socket>(strand_);
|
||||
boost::asio::ip::tcp::endpoint endpoint(boost::asio::ip::make_address(host_), port_);
|
||||
stream_->async_connect(endpoint,
|
||||
[this](const boost::system::error_code& ec)
|
||||
{
|
||||
stream_->async_connect(endpoint, [this](const boost::system::error_code& ec)
|
||||
{
|
||||
if (!ec)
|
||||
{
|
||||
LOG(DEBUG, LOG_TAG) << "Connected\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue