Fixed nullref in UDPClient.SetCancelToken
This commit is contained in:
@@ -24,6 +24,7 @@ namespace Discord.Net.Providers.UDPClient
|
|||||||
public UDPClient()
|
public UDPClient()
|
||||||
{
|
{
|
||||||
_lock = new SemaphoreSlim(1, 1);
|
_lock = new SemaphoreSlim(1, 1);
|
||||||
|
_cancelTokenSource = new CancellationTokenSource();
|
||||||
}
|
}
|
||||||
private void Dispose(bool disposing)
|
private void Dispose(bool disposing)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user