[rygel] core: Destroy the device list before quiting main loop



commit b227f4f5e4e034af36d03f3b00dc9299fabfcd8c
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 f35a730..bf1fd85 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]