mirror of
https://github.com/claunia/romrepomgr.git
synced 2025-12-16 19:24:51 +00:00
[Refactor] Update Task.Run usage to await and discard returned tasks.
Fixes some race conditions.
This commit is contained in:
@@ -59,7 +59,7 @@ public class Vfs : IDisposable
|
||||
MountPoint = mountPoint
|
||||
};
|
||||
|
||||
Task.Run(() =>
|
||||
_ = Task.Run(() =>
|
||||
{
|
||||
_fuse.Start();
|
||||
|
||||
|
||||
@@ -498,7 +498,7 @@ public class FileExporter
|
||||
if(_filesByMachine.Count == 0)
|
||||
{
|
||||
_machinePosition++;
|
||||
Task.Run(CompressNextMachine);
|
||||
_ = Task.Run(CompressNextMachine);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user