aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Luca <marius@dreamer-ge.com>2021-11-14 20:46:17 +0200
committerMarius Luca <marius@dreamer-ge.com>2021-11-14 20:46:17 +0200
commita774d1fa10941d73b9a1353b2c7d784eef345bbf (patch)
tree8239c6eee629369ecaf6558ed8eb8b3f55757f93
parent5254e74719e666ab9c02dbda25de6c0da9412d43 (diff)
- flush the XmlWriter before calling the StringBuilder ToString() method
-rw-r--r--Emby.Dlna/ContentDirectory/ControlHandler.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Emby.Dlna/ContentDirectory/ControlHandler.cs b/Emby.Dlna/ContentDirectory/ControlHandler.cs
index 657850ac0..26a816107 100644
--- a/Emby.Dlna/ContentDirectory/ControlHandler.cs
+++ b/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());
}