From b227f4f5e4e034af36d03f3b00dc9299fabfcd8c Mon Sep 17 00:00:00 2001 From: "Zeeshan Ali (Khattak)" Date: Tue, 5 Oct 2010 19:44:17 +0300 Subject: [PATCH] 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 file changed, 1 insertion(+) 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 (); -- 2.7.4