Ensure blocking garbage collection with host watchdog

This commit is contained in:
Cyberboss
2018-09-28 10:32:54 -04:00
parent 6f02ad8813
commit e798d6eb60
@@ -228,7 +228,7 @@ namespace Tgstation.Server.Host.Watchdog
if (isWindows)
{
//windows dick sucking resource unlocking
GC.Collect();
GC.Collect(Int32.MaxValue, GCCollectionMode.Default, true);
await Task.Delay(TimeSpan.FromSeconds(5), cancellationToken).ConfigureAwait(false);
}
var tempPath = Path.Combine(assemblyStoragePath, Guid.NewGuid().ToString());