mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Use OperationCancelledException instead of catch Exception and check
This commit is contained in:
parent
1c20069598
commit
731c3cdcbc
1 changed files with 1 additions and 1 deletions
|
|
@ -221,7 +221,7 @@ namespace Flow.Launcher.Core.Plugin
|
|||
metadata.QueryCount == 1 ? milliseconds : (metadata.AvgQueryTime + milliseconds) / 2;
|
||||
token.ThrowIfCancellationRequested();
|
||||
}
|
||||
catch (Exception e) when (e is OperationCanceledException || e is TaskCanceledException)
|
||||
catch (OperationCanceledException)
|
||||
{
|
||||
return results = null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue