This commit is contained in:
JustArchi 2017-08-14 05:32:22 +02:00
parent c13fd10bd8
commit 02e7f2144f

View file

@ -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(),