浏览代码

Merge pull request #6845 from marius-luca-87/dlna

Flush the XmlWriter before calling the StringBuilder ToString() method
Cody Robibero 3 年之前
父节点
当前提交
4cb649853d
共有 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());
             }