Update Dependencies and support NS2.0 builds (#1046)
* Update deps, fix test warnings. * Support ns2.0 * Fix typo * Remove ns1.1 support * Net.Http and Net.Websockets.Client are not needed in ns2.0 * Move to net46 per volt * Remove ns1.3 constants
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
#if DEFAULTUDPCLIENT
|
||||
using System;
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
@@ -85,11 +84,7 @@ namespace Discord.Net.Udp
|
||||
|
||||
if (_udp != null)
|
||||
{
|
||||
#if UDPDISPOSE
|
||||
try { _udp.Dispose(); }
|
||||
#else
|
||||
try { _udp.Close(); }
|
||||
#endif
|
||||
catch { }
|
||||
_udp = null;
|
||||
}
|
||||
@@ -132,4 +127,3 @@ namespace Discord.Net.Udp
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user