You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-16 15:16:33 +09:00
Extra try-catch added for socket.Shutdown() failing on mono
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user