rygel r617 - trunk/src/rygel



Author: zeeshanak
Date: Thu Feb 19 17:17:05 2009
New Revision: 617
URL: http://svn.gnome.org/viewvc/rygel?rev=617&view=rev

Log:
All state machines are canceled before their user objects go away.

Modified:
   trunk/src/rygel/rygel-content-directory.vala
   trunk/src/rygel/rygel-http-server.vala

Modified: trunk/src/rygel/rygel-content-directory.vala
==============================================================================
--- trunk/src/rygel/rygel-content-directory.vala	(original)
+++ trunk/src/rygel/rygel-content-directory.vala	Thu Feb 19 17:17:05 2009
@@ -110,6 +110,11 @@
     }
 
     ~ContentDirectory () {
+        // Cancel all browse calls
+        foreach (var browse in this.browses) {
+            browse.cancel ();
+        }
+
         this.http_server.destroy ();
     }
 

Modified: trunk/src/rygel/rygel-http-server.vala
==============================================================================
--- trunk/src/rygel/rygel-http-server.vala	(original)
+++ trunk/src/rygel/rygel-http-server.vala	Thu Feb 19 17:17:05 2009
@@ -47,6 +47,11 @@
     }
 
     public void destroy () {
+        // Cancel all http requests
+        foreach (var request in this.requests) {
+            request.cancel ();
+        }
+
         context.server.remove_handler (this.path_root);
     }
 



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