mirror of
https://github.com/reactos/rosev_ircsystem.git
synced 2024-11-26 21:30:32 +00:00
Use the second overload of shutdown() to ignore any errors while shutting down the socket (like endpoint being closed already).
Fixes bug #6074. svn path=/trunk/rosev_ircsystem/; revision=1292
This commit is contained in:
parent
6e77cbd8c1
commit
fa76f9223a
@ -347,7 +347,12 @@ CNetworkClient::Shutdown()
|
||||
m_Timer.cancel();
|
||||
|
||||
boost::asio::ip::tcp::socket::lowest_layer_type& Socket = GetSocket();
|
||||
Socket.shutdown(boost::asio::socket_base::shutdown_both);
|
||||
|
||||
/* Use the second overload of shutdown() to ignore any errors while shutting down the socket
|
||||
(like endpoint being closed already). */
|
||||
boost::system::error_code ErrorCode;
|
||||
Socket.shutdown(boost::asio::socket_base::shutdown_both, ErrorCode);
|
||||
|
||||
Socket.close();
|
||||
|
||||
m_ShutdownCompleted = true;
|
||||
|
Loading…
Reference in New Issue
Block a user