core: Destroy the device list before quiting main loop
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Tue, 5 Oct 2010 16:44:17 +0000 (19:44 +0300)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Tue, 5 Oct 2010 16:55:10 +0000 (19:55 +0300)
For some reason, the SSDP 'BYE' message doesn't get sent out for all devices
before rygel exits. This change makes sending of these packet a lot more
(could actually be 100%) reliable.

src/rygel/rygel-main.vala

index f35a730..bf1fd85 100644 (file)
@@ -61,6 +61,7 @@ public class Rygel.Main : Object {
     public void exit (int exit_code) {
         this.exit_code = exit_code;
 
+        this.root_devices = null;
         this.main_loop.quit ();
 
         SignalHandler.cleanup ();