Update MainForm.cs

This commit is contained in:
pointfeev 2022-06-12 02:17:41 -05:00
parent 2c9cc36334
commit f4d26ab9ef

View file

@ -195,8 +195,6 @@ internal partial class MainForm : CustomForm
try try
{ {
await updateManager.PrepareUpdateAsync(latestVersion, progress, cancellationTokenSource.Token); await updateManager.PrepareUpdateAsync(latestVersion, progress, cancellationTokenSource.Token);
cancellationTokenSource.Dispose();
cancellationTokenSource = null;
} }
#if DEBUG #if DEBUG
catch (Exception ex) catch (Exception ex)