mirror of
https://github.com/claunia/romrepomgr.git
synced 2025-12-16 19:24:51 +00:00
[App] When an error occurs in a DAT importer worker, keep raising workers.
This commit is contained in:
@@ -154,6 +154,13 @@ public sealed partial class ImportDatFolderViewModel : ViewModelBase
|
||||
if(_workers < Environment.ProcessorCount) Import();
|
||||
};
|
||||
|
||||
worker.ErrorOccurred += (_, _) =>
|
||||
{
|
||||
_workers--;
|
||||
|
||||
if(_workers < Environment.ProcessorCount) Import();
|
||||
};
|
||||
|
||||
Importers.Add(model);
|
||||
|
||||
model.Task = Task.Run(worker.Import);
|
||||
|
||||
Reference in New Issue
Block a user