[Refactor] Update Task.Run usage to await and discard returned tasks.

Fixes some race conditions.
This commit is contained in:
2025-07-07 22:17:27 +01:00
parent 5096884f2a
commit ca1708a337
14 changed files with 257 additions and 243 deletions

View File

@@ -59,7 +59,7 @@ public class Vfs : IDisposable
MountPoint = mountPoint
};
Task.Run(() =>
_ = Task.Run(() =>
{
_fuse.Start();

View File

@@ -498,7 +498,7 @@ public class FileExporter
if(_filesByMachine.Count == 0)
{
_machinePosition++;
Task.Run(CompressNextMachine);
_ = Task.Run(CompressNextMachine);
return;
}