rygel r597 - trunk/src/plugins/tracker



Author: zeeshanak
Date: Sat Feb 14 15:33:26 2009
New Revision: 597
URL: http://svn.gnome.org/viewvc/rygel?rev=597&view=rev

Log:
Catch the error thrown by Search.Query.

Modified:
   trunk/src/plugins/tracker/rygel-tracker-container.vala

Modified: trunk/src/plugins/tracker/rygel-tracker-container.vala
==============================================================================
--- trunk/src/plugins/tracker/rygel-tracker-container.vala	(original)
+++ trunk/src/plugins/tracker/rygel-tracker-container.vala	Sat Feb 14 15:33:26 2009
@@ -122,18 +122,24 @@
 
         this.results.add (res);
 
-        this.search.Query (0,
-                           this.category,
-                           this.get_metadata_keys (),
-                           "",
-                           new string[0],
-                           "",
-                           false,
-                           new string[0],
-                           false,
-                           (int) offset,
-                           (int) max_count,
-                           res.ready);
+        try {
+            this.search.Query (0,
+                               this.category,
+                               this.get_metadata_keys (),
+                               "",
+                               new string[0],
+                               "",
+                               false,
+                               new string[0],
+                               false,
+                               (int) offset,
+                               (int) max_count,
+                               res.ready);
+        } catch (GLib.Error error) {
+            res.error = error;
+
+            res.complete_in_idle ();
+        }
     }
 
     public override Gee.List<MediaObject>? get_children_finish (



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