mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-11 08:06:41 +02:00
log error code message
This commit is contained in:
parent
884a65f289
commit
ffa823bb31
4 changed files with 7 additions and 10 deletions
|
@ -58,9 +58,9 @@ void StreamSession::stop()
|
|||
if (socket_)
|
||||
{
|
||||
socket_->shutdown(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);
|
||||
if (ec) logE << "Error in socket close: " << ec << "\n";
|
||||
if (ec) logE << "Error in socket close: " << ec.message() << "\n";
|
||||
}
|
||||
if (readerThread_)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue