浏览代码

- flush the XmlWriter before calling the StringBuilder ToString() method

Marius Luca 3 年之前
父节点
当前提交
a774d1fa10
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Emby.Dlna/ContentDirectory/ControlHandler.cs

+ 2 - 0
Emby.Dlna/ContentDirectory/ControlHandler.cs

@@ -395,6 +395,7 @@ namespace Emby.Dlna.ContentDirectory
                 }
 
                 writer.WriteFullEndElement();
+                writer.Flush();
                 xmlWriter.WriteElementString("Result", builder.ToString());
             }
 
@@ -484,6 +485,7 @@ namespace Emby.Dlna.ContentDirectory
                 }
 
                 writer.WriteFullEndElement();
+                writer.Flush();
                 xmlWriter.WriteElementString("Result", builder.ToString());
             }