Skip to content

Commit 83932ce

Browse files
committed
Fix false cancel report on CrackSession
1 parent 5203142 commit 83932ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Kryptor.Cli/KeyStoreAnalyze/CrackSession.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ protected override async Task<bool> RunAsync(ISessionHost sessionHost, Cancellat
4545

4646
await container.WaitAll();
4747

48-
cancellationToken.ThrowIfCancellationRequested();
48+
if (!Found)
49+
{
50+
cancellationToken.ThrowIfCancellationRequested();
51+
}
4952

5053
return true;
5154
}

0 commit comments

Comments
 (0)