Remove sleep from delete task

This commit is contained in:
Simon Lübeß
2025-07-03 11:02:30 +02:00
parent c931451f10
commit 1b46ff779a
@@ -86,8 +86,6 @@ class DeleteBackgroundTask : BackgroundTask
while (!_scanQueue.IsEmpty && Running) while (!_scanQueue.IsEmpty && Running)
{ {
Thread.Sleep(500);
// Pop from back, so that we delete children before parent directories // Pop from back, so that we delete children before parent directories
currentPath = _scanQueue.PopBack(); currentPath = _scanQueue.PopBack();
@@ -132,8 +130,6 @@ class DeleteBackgroundTask : BackgroundTask
while (!_pathsToDelete.IsEmpty && Running) while (!_pathsToDelete.IsEmpty && Running)
{ {
Thread.Sleep(500);
String currentPath = _pathsToDelete.Back; String currentPath = _pathsToDelete.Back;
if (DeletePath(currentPath) case .Err(out _currentError) || Paused) if (DeletePath(currentPath) case .Err(out _currentError) || Paused)