mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 15:14:41 +00:00
Misc
This commit is contained in:
parent
c13fd10bd8
commit
02e7f2144f
1 changed files with 5 additions and 0 deletions
|
@ -32,6 +32,11 @@ namespace ArchiSteamFarm {
|
|||
private static Timer GarbageCompactionTimer;
|
||||
|
||||
internal static void EnableBackgroundGC(byte period) {
|
||||
if (period == 0) {
|
||||
ASF.ArchiLogger.LogNullError(nameof(period));
|
||||
return;
|
||||
}
|
||||
|
||||
if (GarbageCollectionTimer == null) {
|
||||
GarbageCollectionTimer = new Timer(
|
||||
e => GC.Collect(),
|
||||
|
|
Loading…
Reference in a new issue