From b38fc3a8b570650469e32d55634ee4fe5550f81d Mon Sep 17 00:00:00 2001
From: Timothy Baldridge <tbaldridge@gmail.com>
Date: Sun, 19 Jan 2020 15:40:30 -0700
Subject: [PATCH] Critical flaw in AuthorAPI

---
 Wabbajack.Lib/FileUploader/AuthorAPI.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Wabbajack.Lib/FileUploader/AuthorAPI.cs b/Wabbajack.Lib/FileUploader/AuthorAPI.cs
index 7b32e8c7..90cfad9c 100644
--- a/Wabbajack.Lib/FileUploader/AuthorAPI.cs
+++ b/Wabbajack.Lib/FileUploader/AuthorAPI.cs
@@ -53,7 +53,7 @@ namespace Wabbajack.Lib.FileUploader
                         if (new_size != data.Length) 
                             data = new byte[new_size];
 
-                        stream.ReadAsync(data, 0, data.Length);
+                        await stream.ReadAsync(data, 0, data.Length);
 
                         response = await client.PutAsync(UploadURL + $"/{key}/data/{old_offset}",
                             new ByteArrayContent(data));