[rygel/gnome-2-32] core: Destroy the device list before quiting main loop



commit 24d94cb0b6650761e830b918e4cdae6b14dae543
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Oct 5 19:44:17 2010 +0300

    core: Destroy the device list before quiting main loop
    
    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 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/rygel/rygel-main.vala b/src/rygel/rygel-main.vala
index 772ffa4..e0b1932 100644
--- a/src/rygel/rygel-main.vala
+++ b/src/rygel/rygel-main.vala
@@ -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 ();



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