From ecf1b353c80cecb14c9381159313f443ddfe22a1 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 31 Jul 2022 22:14:08 -0500 Subject: use blocking collection when forcing GC --- src/slskd/Application.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs index 1c7031cc..cd45fbeb 100644 --- a/src/slskd/Application.cs +++ b/src/slskd/Application.cs @@ -180,7 +180,7 @@ namespace slskd GCSettings.LargeObjectHeapCompactionMode = GCLargeObjectHeapCompactionMode.CompactOnce; #pragma warning disable S1215 // "GC.Collect" should not be called - GC.Collect(2, GCCollectionMode.Forced, blocking: false, compacting: true); + GC.Collect(2, GCCollectionMode.Forced, blocking: true, compacting: true); #pragma warning restore S1215 // "GC.Collect" should not be called sw.Stop(); -- cgit v1.2.3