client: log error is socket shutdown fails
Dieser Commit ist enthalten in:
Ursprung
6da1ef51d1
Commit
2a1346e0d9
@ -43,13 +43,10 @@ Client::Client(Traintastic& server, const std::string& id, boost::asio::ip::tcp:
|
|||||||
|
|
||||||
Client::~Client()
|
Client::~Client()
|
||||||
{
|
{
|
||||||
try
|
boost::system::error_code ec;
|
||||||
{
|
m_socket.shutdown(boost::asio::ip::tcp::socket::shutdown_both, ec);
|
||||||
m_socket.shutdown(boost::asio::ip::tcp::socket::shutdown_both);
|
if(ec)
|
||||||
}
|
Traintastic::instance->console->info(m_id, ec.message());
|
||||||
catch(...)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
m_socket.close();
|
m_socket.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren