work around some warnings

This commit is contained in:
UbitUmarov
2016-11-21 01:16:35 +00:00
parent b70e48c8a5
commit b2c553b459
4 changed files with 21 additions and 9 deletions

View File

@@ -179,6 +179,11 @@ namespace OpenMetaverse
// m_dropRandomGenerator = new Random();
}
~OpenSimUDPBase()
{
if(m_udpSocket !=null)
try { m_udpSocket.Close(); } catch { }
}
/// <summary>
/// Start inbound UDP packet handling.
/// </summary>