mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-06 10:09:33 +02:00
log socket error messages
This commit is contained in:
parent
b4a23894f0
commit
7e1a8279df
2 changed files with 4 additions and 4 deletions
|
@ -87,9 +87,9 @@ void ClientConnection::stop()
|
||||||
if (socket_)
|
if (socket_)
|
||||||
{
|
{
|
||||||
socket_->shutdown(boost::asio::ip::tcp::socket::shutdown_both, ec);
|
socket_->shutdown(boost::asio::ip::tcp::socket::shutdown_both, ec);
|
||||||
if (ec) logE << "Error in socket shutdown: " << ec << endl;
|
if (ec) logE << "Error in socket shutdown: " << ec.message() << endl;
|
||||||
socket_->close(ec);
|
socket_->close(ec);
|
||||||
if (ec) logE << "Error in socket close: " << ec << endl;
|
if (ec) logE << "Error in socket close: " << ec.message() << endl;
|
||||||
}
|
}
|
||||||
if (readerThread_)
|
if (readerThread_)
|
||||||
{
|
{
|
||||||
|
|
|
@ -58,9 +58,9 @@ void ServerSession::stop()
|
||||||
if (socket_)
|
if (socket_)
|
||||||
{
|
{
|
||||||
socket_->shutdown(boost::asio::ip::tcp::socket::shutdown_both, ec);
|
socket_->shutdown(boost::asio::ip::tcp::socket::shutdown_both, ec);
|
||||||
if (ec) logE << "Error in socket shutdown: " << ec << "\n";
|
if (ec) logE << "Error in socket shutdown: " << ec.message() << "\n";
|
||||||
socket_->close(ec);
|
socket_->close(ec);
|
||||||
if (ec) logE << "Error in socket close: " << ec << "\n";
|
if (ec) logE << "Error in socket close: " << ec.message() << "\n";
|
||||||
}
|
}
|
||||||
if (readerThread_)
|
if (readerThread_)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue