mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-16 08:25:28 +00:00
Greatly improve ASF background operations
I hated that Forget() for quite a long time now, finally this code looks much better now.
This commit is contained in:
@@ -199,10 +199,10 @@ namespace ArchiSteamFarm {
|
||||
if (Program.GlobalConfig.ConfirmationsLimiterDelay == 0) {
|
||||
ConfirmationsSemaphore.Release();
|
||||
} else {
|
||||
Task.Run(async () => {
|
||||
Utilities.InBackground(async () => {
|
||||
await Task.Delay(Program.GlobalConfig.ConfirmationsLimiterDelay * 1000).ConfigureAwait(false);
|
||||
ConfirmationsSemaphore.Release();
|
||||
}).Forget();
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user