core: Fix error handling in item creator
authorJens Georg <mail@jensge.org>
Sun, 25 Dec 2011 13:06:49 +0000 (14:06 +0100)
committerJens Georg <mail@jensge.org>
Sun, 25 Dec 2011 13:06:49 +0000 (14:06 +0100)
Method was needlessly declared async, so the throwing of the exception
was not propagated properly in an case of error.

src/rygel/rygel-item-creator.vala

index b601b8a..d6c867e 100644 (file)
@@ -211,7 +211,7 @@ internal class Rygel.ItemCreator: GLib.Object, Rygel.StateMachine {
         }
     }
 
-    private async void parse_args () throws Error {
+    private void parse_args () throws Error {
         /* Start by parsing the 'in' arguments */
         this.action.get ("ContainerID", typeof (string), out this.container_id,
                          "Elements", typeof (string), out this.elements);