From 679a54f765b05392a387503291ad64374eae811f Mon Sep 17 00:00:00 2001 From: Ryan Kistner Date: Fri, 28 Aug 2020 12:13:35 -0600 Subject: [PATCH] On write, await WriteAsync --- DepotDownloader/ContentDownloader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DepotDownloader/ContentDownloader.cs b/DepotDownloader/ContentDownloader.cs index faa09a7b..2b96753e 100644 --- a/DepotDownloader/ContentDownloader.cs +++ b/DepotDownloader/ContentDownloader.cs @@ -1088,7 +1088,7 @@ namespace DepotDownloader await fileStreamData.fileLock.WaitAsync().ConfigureAwait(false); fileStreamData.fileStream.Seek((long)chunkData.ChunkInfo.Offset, SeekOrigin.Begin); - fileStreamData.fileStream.Write(chunkData.Data, 0, chunkData.Data.Length); + await fileStreamData.fileStream.WriteAsync(chunkData.Data, 0, chunkData.Data.Length); } finally {