From 2e027e61957dfa7354bb42bb6bba303e1b7700cf Mon Sep 17 00:00:00 2001 From: Niels Hartvig Date: Thu, 2 Mar 2017 10:33:00 +0100 Subject: [PATCH] Removes async from filestream instance --- src/Umbraco.Web/umbraco.presentation/content.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web/umbraco.presentation/content.cs b/src/Umbraco.Web/umbraco.presentation/content.cs index a7c5a75337..a7431ffae9 100644 --- a/src/Umbraco.Web/umbraco.presentation/content.cs +++ b/src/Umbraco.Web/umbraco.presentation/content.cs @@ -844,7 +844,7 @@ namespace umbraco internal void SaveXmlToFile() { LogHelper.Info("Save Xml to file..."); - + //Thread.Sleep(30000); try { var xml = _xmlContent; // capture (atomic + volatile), immutable anyway @@ -861,7 +861,7 @@ namespace umbraco Directory.CreateDirectory(directoryName); // save - using (var fs = new FileStream(_xmlFileName, FileMode.Create, FileAccess.Write, FileShare.Read, bufferSize: 4096, useAsync: true)) + using (var fs = new FileStream(_xmlFileName, FileMode.Create, FileAccess.Write, FileShare.Read)) { SaveXmlToStream(xml, fs); }