mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-22 13:36:18 +02:00
Reformat code
This commit is contained in:
parent
c6518a4709
commit
e1c8250876
32 changed files with 505 additions and 351 deletions
|
@ -75,7 +75,9 @@ void TcpStream::do_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";
|
||||
|
@ -92,7 +94,9 @@ void TcpStream::do_connect()
|
|||
{
|
||||
stream_ = make_unique<tcp::socket>(strand_);
|
||||
boost::asio::ip::tcp::endpoint endpoint(boost::asio::ip::address::from_string(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