Skip to content

Commit

Permalink
Converted CheckForUpdates() private method from void to Task.
Browse files Browse the repository at this point in the history
  • Loading branch information
xvitaly committed Jul 20, 2023
1 parent 346296e commit 1b9ce41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/srcrepair/FrmMainW.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ private void HandleHUDMode(bool Mode)
/// Launches a program update checker in a separate thread, waits for the
/// result and returns a message if found.
/// </summary>
private async void CheckForUpdates()
private async Task CheckForUpdates()
{
if (IsAutoUpdateCheckNeeded())
{
Expand Down Expand Up @@ -1738,7 +1738,7 @@ private async Task WriteTableToFileTask(string ConfFile)
/// </summary>
/// <param name="sender">Sender object.</param>
/// <param name="e">Event arguments.</param>
private void FrmMainW_Load(object sender, EventArgs e)
private async void FrmMainW_Load(object sender, EventArgs e)
{
ConfigureCryptoPolicy();
InitializeApp();
Expand All @@ -1748,7 +1748,7 @@ private void FrmMainW_Load(object sender, EventArgs e)
CheckSafeClnStatus();
CheckSymbolsSteam();
FindGames();
CheckForUpdates();
await CheckForUpdates();
CleanOldUpdates();
}

Expand Down

0 comments on commit 1b9ce41

Please sign in to comment.