Skip to content

Commit

Permalink
Try to fix wierd race condition and unintended behaviors in wordlist …
Browse files Browse the repository at this point in the history
…downloader
  • Loading branch information
Aeliux committed Aug 16, 2024
1 parent 77d1b9b commit 1ecd57a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/Kryptor.Cli.Shared/Wordlist/DownloadSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public DownloadSession(WordlistIndexEntryV2 entry, FileInfo output)
Description = $"{entry.Id}: Ready";
}

private async void SetEndStatus(object sender, System.ComponentModel.AsyncCompletedEventArgs e)
private void SetEndStatus(object sender, System.ComponentModel.AsyncCompletedEventArgs e)
{
if (e.Error != null)
{
Expand All @@ -95,7 +95,7 @@ private async void SetEndStatus(object sender, System.ComponentModel.AsyncComple
Description = $"{IndexEntry.Id}: Verifying file";

var str = File.OpenRead(Downloader.Package.FileName);
await VerifyHash(str, CancellationToken);
VerifyHash(str, CancellationToken).Wait();

if (IndexEntry.Compressed)
{
Expand Down

0 comments on commit 1ecd57a

Please sign in to comment.