Fixed nullref in UDPClient.SetCancelToken

This commit is contained in:
RogueException
2017-04-26 12:06:46 -03:00
parent 7b99c6003d
commit 649bf27557

View File

@@ -24,6 +24,7 @@ namespace Discord.Net.Providers.UDPClient
public UDPClient()
{
_lock = new SemaphoreSlim(1, 1);
_cancelTokenSource = new CancellationTokenSource();
}
private void Dispose(bool disposing)
{