banshee r4672 - in trunk/banshee: . src/Clients/Beroe/Beroe



Author: abock
Date: Wed Oct  8 23:19:17 2008
New Revision: 4672
URL: http://svn.gnome.org/viewvc/banshee?rev=4672&view=rev

Log:
* banshee/src/Clients/Beroe/Beroe/RemoteClient.cs: Check for Shutdown
  when processing the index

Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Clients/Beroe/Beroe/RemoteClient.cs

Modified: trunk/banshee/src/Clients/Beroe/Beroe/RemoteClient.cs
==============================================================================
--- trunk/banshee/src/Clients/Beroe/Beroe/RemoteClient.cs	(original)
+++ trunk/banshee/src/Clients/Beroe/Beroe/RemoteClient.cs	Wed Oct  8 23:19:17 2008
@@ -67,7 +67,7 @@
             indexer.Index ();
             
             for (int i = 0, models = indexer.GetModelCounts (); i < models; i++) {
-                for (int j = 0, items = indexer.GetModelResultsCount (i); j < items; j++) {
+                for (int j = 0, items = indexer.GetModelResultsCount (i); j < items && !Shutdown; j++) {
                     IDictionary<string, object> result = indexer.GetResult (i, j);
                     Console.WriteLine (result["URI"]);
                 }



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