diff --git a/Lidgren.Network/NetPeer.Internal.cs b/Lidgren.Network/NetPeer.Internal.cs index 99a2210..2a2faaf 100644 --- a/Lidgren.Network/NetPeer.Internal.cs +++ b/Lidgren.Network/NetPeer.Internal.cs @@ -221,7 +221,11 @@ namespace Lidgren.Network { if (m_socket != null) { - m_socket.Shutdown(SocketShutdown.Receive); + try + { + m_socket.Shutdown(SocketShutdown.Receive); + } + catch { } m_socket.Close(2); // 2 seconds timeout } if (m_messageReceivedEvent != null)