banshee r4536 - in trunk/banshee: . src/Extensions/Banshee.RemoteAudio/Banshee.RemoteAudio



Author: gburt
Date: Fri Sep 12 19:17:00 2008
New Revision: 4536
URL: http://svn.gnome.org/viewvc/banshee?rev=4536&view=rev

Log:
2008-09-12  Gabriel Burt  <gabriel burt gmail com>

	* src/Extensions/Banshee.RemoteAudio/Banshee.RemoteAudio/RemoteAudioService.cs:
	Avoid NRE when disposing if the network isn't connected.



Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Extensions/Banshee.RemoteAudio/Banshee.RemoteAudio/RemoteAudioService.cs

Modified: trunk/banshee/src/Extensions/Banshee.RemoteAudio/Banshee.RemoteAudio/RemoteAudioService.cs
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.RemoteAudio/Banshee.RemoteAudio/RemoteAudioService.cs	(original)
+++ trunk/banshee/src/Extensions/Banshee.RemoteAudio/Banshee.RemoteAudio/RemoteAudioService.cs	Fri Sep 12 19:17:00 2008
@@ -73,7 +73,9 @@
   
         public void Dispose ()
         {
-            browser.Dispose ();
+            if (browser != null) {
+                browser.Dispose ();
+            }
         }
         
         string Banshee.ServiceStack.IService.ServiceName {



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