Format the project with 'dotnet format' (#2551)
* Sync and Re-Format * Fix Title string. * Fix indentation.
This commit is contained in:
@@ -87,14 +87,17 @@ namespace Discord.Net.Udp
|
||||
}
|
||||
public async Task StopInternalAsync(bool isDisposing = false)
|
||||
{
|
||||
try { _stopCancelTokenSource.Cancel(false); } catch { }
|
||||
try
|
||||
{ _stopCancelTokenSource.Cancel(false); }
|
||||
catch { }
|
||||
|
||||
if (!isDisposing)
|
||||
await (_task ?? Task.Delay(0)).ConfigureAwait(false);
|
||||
|
||||
if (_udp != null)
|
||||
{
|
||||
try { _udp.Dispose(); }
|
||||
try
|
||||
{ _udp.Dispose(); }
|
||||
catch { }
|
||||
_udp = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user