From 1e3ca8f0169aa1493147222cb008796ecfd92ffa Mon Sep 17 00:00:00 2001 From: Yaakov Date: Sat, 9 Sep 2017 23:55:44 +0300 Subject: [PATCH] Missed something fairly important It kind of helps to actually use the semaphore. Missed this when reapplying changes after whitespace. --- DepotDownloader/ContentDownloader.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DepotDownloader/ContentDownloader.cs b/DepotDownloader/ContentDownloader.cs index 1cef730b..9851e8c6 100644 --- a/DepotDownloader/ContentDownloader.cs +++ b/DepotDownloader/ContentDownloader.cs @@ -698,6 +698,8 @@ namespace DepotDownloader try { + await semaphore.WaitAsync().ConfigureAwait( false ); + string fileFinalPath = Path.Combine( depot.installDir, file.FileName ); string fileStagingPath = Path.Combine( stagingDir, file.FileName );