aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2020-01-18 00:09:25 +0100
committerBond_009 <bond.009@outlook.com>2020-01-18 00:09:25 +0100
commit2610f377c0a15788badffd0720175109117af1ed (patch)
treec9b86231c1b6f5093bcdf4d7f2a054c91349239d
parent8e71046a3c7b2e39bbdbfda8518730df21120ef8 (diff)
Kestrel doesn't like sync IO operations
-rw-r--r--Emby.Dlna/Service/BaseControlHandler.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/Emby.Dlna/Service/BaseControlHandler.cs b/Emby.Dlna/Service/BaseControlHandler.cs
index 067d5fa43..79f03fed9 100644
--- a/Emby.Dlna/Service/BaseControlHandler.cs
+++ b/Emby.Dlna/Service/BaseControlHandler.cs
@@ -63,7 +63,8 @@ namespace Emby.Dlna.Service
ValidationType = ValidationType.None,
CheckCharacters = false,
IgnoreProcessingInstructions = true,
- IgnoreComments = true
+ IgnoreComments = true,
+ Async = true
};
using (var reader = XmlReader.Create(streamReader, readerSettings))
@@ -79,7 +80,8 @@ namespace Emby.Dlna.Service
var settings = new XmlWriterSettings
{
Encoding = Encoding.UTF8,
- CloseOutput = false
+ CloseOutput = false,
+ Async = true
};
StringWriter builder = new StringWriterWithEncoding(Encoding.UTF8);