mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DATFromDir] Set maximum delete retries at 50
This commit is contained in:
@@ -190,7 +190,8 @@ namespace SabreTools
|
||||
new ParallelOptions { MaxDegreeOfParallelism = _maxDegreeOfParallelism },
|
||||
file =>
|
||||
{
|
||||
while (File.Exists(file))
|
||||
int i = 0;
|
||||
while (File.Exists(file) && i < 50)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -198,8 +199,8 @@ namespace SabreTools
|
||||
}
|
||||
catch
|
||||
{
|
||||
// Just absorb the error for now
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user