mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-29 16:11:05 +01:00
Ensure blocking garbage collection with host watchdog
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user