mirror of
https://github.com/claunia/romrepomgr.git
synced 2025-12-16 19:24:51 +00:00
[Refactor] Update Task.Run usage to await and discard returned tasks.
Fixes some race conditions.
This commit is contained in:
@@ -161,7 +161,7 @@ public sealed class ImportDatViewModel : ViewModelBase
|
||||
{
|
||||
ProgressVisible = true;
|
||||
_worker.RomSetAdded += RomSetAdded;
|
||||
Task.Run(_worker.Import);
|
||||
_ = Task.Run(_worker.Import);
|
||||
}
|
||||
|
||||
public event EventHandler<RomSetEventArgs> RomSetAdded;
|
||||
|
||||
Reference in New Issue
Block a user