[farsight2/master] Don't make the root device available before filling it

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:25:18 PST 2008


---
 tests/check/upnp/fsupnp.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/tests/check/upnp/fsupnp.c b/tests/check/upnp/fsupnp.c
index 4fb643d..69870aa 100644
--- a/tests/check/upnp/fsupnp.c
+++ b/tests/check/upnp/fsupnp.c
@@ -173,7 +173,6 @@ run_fsupnp_test (GMainContext *mainctx, FsUpnpSimpleIgd *igd)
 
   dev = gupnp_root_device_new (context, "/InternetGatewayDevice.xml");
   fail_if (dev == NULL, "could not get root dev");
-  gupnp_root_device_set_available (dev, TRUE);
 
   subdev1 = gupnp_device_info_get_device (GUPNP_DEVICE_INFO (dev),
       "urn:schemas-upnp-org:device:WANDevice:1");
@@ -194,6 +193,8 @@ run_fsupnp_test (GMainContext *mainctx, FsUpnpSimpleIgd *igd)
   g_signal_connect (service, "action-invoked::DeletePortMapping",
       G_CALLBACK (delete_port_mapping_cb), NULL);
 
+  gupnp_root_device_set_available (dev, TRUE);
+
   g_signal_connect (igd, "mapped-external-port",
       G_CALLBACK (mapping_external_port_cb), service);
   g_signal_connect (igd, "error-mapping-port",
-- 
1.5.6.5




More information about the farsight-commits mailing list