banshee r4340 - in trunk/banshee: . src/Extensions/Banshee.Daap/Daap



Author: blorentz
Date: Fri Aug  8 19:52:25 2008
New Revision: 4340
URL: http://svn.gnome.org/viewvc/banshee?rev=4340&view=rev

Log:
2008-08-08  Bertrand Lorentz  <bertrand lorentz gmail com>

	* src/Extensions/Banshee.Daap/Daap/ServiceLocator.cs: Prevent a crash on
	exit when the DAAP browser could not start.



Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Extensions/Banshee.Daap/Daap/ServiceLocator.cs

Modified: trunk/banshee/src/Extensions/Banshee.Daap/Daap/ServiceLocator.cs
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.Daap/Daap/ServiceLocator.cs	(original)
+++ trunk/banshee/src/Extensions/Banshee.Daap/Daap/ServiceLocator.cs	Fri Aug  8 19:52:25 2008
@@ -116,8 +116,10 @@
         }
         
         public void Stop () {
-            browser.Dispose ();
-            browser = null;
+            if (browser != null) {
+                browser.Dispose ();
+                browser = null;
+            }
             services.Clear ();
         }
         



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]