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()
|
||||
{
|
||||
try
|
||||
{
|
||||
m_socket.shutdown(boost::asio::ip::tcp::socket::shutdown_both);
|
||||
}
|
||||
catch(...)
|
||||
{
|
||||
}
|
||||
boost::system::error_code ec;
|
||||
m_socket.shutdown(boost::asio::ip::tcp::socket::shutdown_both, ec);
|
||||
if(ec)
|
||||
Traintastic::instance->console->info(m_id, ec.message());
|
||||
m_socket.close();
|
||||
}
|
||||
|
||||
|
||||
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren