mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
[PTRun] Implement thread-safety in query results task with lock (#34009)
* [PTRun] Implement thread-safety in query results task with lock * [PTRun] Lock is moved to Unit Converter Query function. * [PTRun] _updateSource.Token is used instead of local currentCancellationToken to avoid dangling reference.
This commit is contained in:
@@ -50,7 +50,6 @@ namespace Community.PowerToys.Run.Plugin.UnitConverter
|
||||
return new List<Result>();
|
||||
}
|
||||
|
||||
// Convert
|
||||
return UnitHandler.Convert(convertModel)
|
||||
.Select(x => GetResult(x))
|
||||
.ToList();
|
||||
|
||||
Reference in New Issue
Block a user