Skip to content

Commit

Permalink
Make verbose network connection more meaningful
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Hold committed Jun 13, 2018
1 parent ef42de2 commit 0996c2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/network/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ ssr::Connection::create(asio::io_service &io_service
, Publisher& controller, char end_of_message_character)
{
VERBOSE2("New network connection ...");
// std::this_thread::sleep_for(std::chrono::milliseconds(100));
return pointer(new Connection(io_service, controller
, end_of_message_character));
}
Expand Down
3 changes: 2 additions & 1 deletion src/network/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ ssr::Server::start_accept()
_acceptor.async_accept(new_connection->socket()
, std::bind(&Server::handle_accept, this, new_connection
, std::placeholders::_1));
VERBOSE2("Network connection accepted.");

// accept_mutex released when lock goes out of scope
}
Expand All @@ -74,6 +73,8 @@ ssr::Server::handle_accept(Connection::pointer new_connection
if (!error)
{
new_connection->start();
VERBOSE2("Network connection accepted.");

start_accept();
}
}
Expand Down

0 comments on commit 0996c2a

Please sign in to comment.