repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
CecTray: try/catch xml exceptions when reading the xml config. bugzid: 2082
[deb_libcec.git]
/
src
/
LibCecTray
/
controller
/
applications
/
internal
/
XBMCController.cs
diff --git
a/src/LibCecTray/controller/applications/internal/XBMCController.cs
b/src/LibCecTray/controller/applications/internal/XBMCController.cs
index b4801e2e62a40252f3aef5e7060639e3c6aa81e7..6b961008986ed01cd26ae12f724eda227c62be1a 100644
(file)
--- a/
src/LibCecTray/controller/applications/internal/XBMCController.cs
+++ b/
src/LibCecTray/controller/applications/internal/XBMCController.cs
@@
-93,8
+93,13
@@
namespace LibCECTray.controller.applications.@internal
if (File.Exists(filename))
{
XmlTextReader reader = new XmlTextReader(filename);
- while (
reader.Read()
)
+ while (
true
)
{
+ try
+ {
+ if (!reader.Read())
+ break;
+ } catch (XmlException) {}
gotConfig = true;
switch (reader.NodeType)
{