mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Remove sleep from delete task
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user