mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
check cancellation to avoid racing issue.
This commit is contained in:
parent
11ca5f9bf3
commit
9d9b5323c6
1 changed files with 3 additions and 0 deletions
|
|
@ -485,6 +485,9 @@ namespace Flow.Launcher.ViewModel
|
|||
// Switch to ThreadPool thread
|
||||
await TaskScheduler.Default;
|
||||
|
||||
if (currentCancellationToken.IsCancellationRequested)
|
||||
return;
|
||||
|
||||
var query = QueryBuilder.Build(QueryText.Trim(), PluginManager.NonGlobalPlugins);
|
||||
|
||||
// handle the exclusiveness of plugin using action keyword
|
||||
|
|
|
|||
Loading…
Reference in a new issue