Ver código fonte

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

Marius Luca 3 anos atrás
pai
commit
a774d1fa10
1 arquivos alterados com 2 adições e 0 exclusões
  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());
             }