From 3f4a4bac2af3638896c72be76623ed5adf66adcc Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 13 Jan 2020 15:32:22 -0500 Subject: [PATCH] copytoasync --- .../Services/Implementations/LocalAttachmentStorageService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/Services/Implementations/LocalAttachmentStorageService.cs b/src/Core/Services/Implementations/LocalAttachmentStorageService.cs index ad6c641aac..79abf5de6a 100644 --- a/src/Core/Services/Implementations/LocalAttachmentStorageService.cs +++ b/src/Core/Services/Implementations/LocalAttachmentStorageService.cs @@ -26,7 +26,7 @@ namespace Bit.Core.Services using(var fs = File.Create($"{cipherDirPath}/{attachmentId}")) { stream.Seek(0, SeekOrigin.Begin); - stream.CopyTo(fs); + await stream.CopyToAsync(fs); } } @@ -39,7 +39,7 @@ namespace Bit.Core.Services using(var fs = File.Create($"{tempCipherOrgDirPath}/{attachmentId}")) { stream.Seek(0, SeekOrigin.Begin); - stream.CopyTo(fs); + await stream.CopyToAsync(fs); } }