1
From: Bertrand Lorentz <bertrand.lorentz@gmail.com>
2
Date: Sat, 24 Mar 2012 12:27:06 +0100
3
Subject: UPnPServerSource: Fix crash when getting the root object
6
Move the GetRootObject () call inside the try/catch block, so that
7
exceptions from Mono.Upnp don't cause a crash.
9
Origin: commit:b627217e3841ca7d0b8af1ed8f916436e5088cee
10
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=672744
12
.../Banshee.UPnPClient/UPnPServerSource.cs | 3 ++-
13
1 file changed, 2 insertions(+), 1 deletion(-)
15
diff --git a/src/Extensions/Banshee.UPnPClient/Banshee.UPnPClient/UPnPServerSource.cs b/src/Extensions/Banshee.UPnPClient/Banshee.UPnPClient/UPnPServerSource.cs
16
index 04a743a..5412663 100644
17
--- a/src/Extensions/Banshee.UPnPClient/Banshee.UPnPClient/UPnPServerSource.cs
18
+++ b/src/Extensions/Banshee.UPnPClient/Banshee.UPnPClient/UPnPServerSource.cs
19
@@ -124,10 +124,11 @@ namespace Banshee.UPnPClient
21
RemoteContentDirectory remote_dir = new RemoteContentDirectory (content_directory);
22
DateTime begin = DateTime.Now;
23
- Container root = remote_dir.GetRootObject ();
24
bool recursive_browse = !content_directory.CanSearch;
27
+ Container root = remote_dir.GetRootObject ();
29
if (!recursive_browse) {
31
Log.Debug ("Content directory is searchable, let's search");