Create the cancellable before anything else.
authorZeeshan Ali (Khattak) <zeeshanak@src.gnome.org>
Sat, 21 Feb 2009 12:03:08 +0000 (12:03 +0000)
committerZeeshan Ali (Khattak) <zeeshanak@src.gnome.org>
Sat, 21 Feb 2009 12:03:08 +0000 (12:03 +0000)
svn path=/trunk/; revision=636

src/rygel/rygel-content-directory.vala

index 873a7b9..6932e2f 100644 (file)
@@ -67,11 +67,12 @@ public class Rygel.ContentDirectory: Service {
     }
 
     public override void constructed () {
+        this.cancellable = new Cancellable ();
+
         this.root_container = this.create_root_container ();
         this.http_server = new HTTPServer (this, this.get_type ().name ());
 
         this.browses = new ArrayList<Browse> ();
-        this.cancellable = new Cancellable ();
         this.updated_containers =  new ArrayList<MediaContainer> ();
 
         this.root_container.container_updated += on_container_updated;