From 5635bbc9d9642b646f2a42d91007c962a78578dd Mon Sep 17 00:00:00 2001 From: Dominion Date: Tue, 28 Mar 2023 02:14:41 -0400 Subject: [PATCH] Minor speedup in directory copying --- src/Tgstation.Server.Host/IO/DefaultIOManager.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Tgstation.Server.Host/IO/DefaultIOManager.cs b/src/Tgstation.Server.Host/IO/DefaultIOManager.cs index 2fd09a6d07..d943fb8399 100644 --- a/src/Tgstation.Server.Host/IO/DefaultIOManager.cs +++ b/src/Tgstation.Server.Host/IO/DefaultIOManager.cs @@ -406,6 +406,8 @@ namespace Tgstation.Server.Host.IO async Task CopyThisFile() { + // Grab all tasks before firing + await Task.Yield(); await CopyFile(sourceFile, destFile, cancellationToken); if (postCopyCallback != null) await postCopyCallback(sourceFile, destFile);