[farsight2/master] Force wakeup of the main context

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


---
 fs-upnp-simple-igd-thread.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/fs-upnp-simple-igd-thread.c b/fs-upnp-simple-igd-thread.c
index 5751f58..1589639 100644
--- a/fs-upnp-simple-igd-thread.c
+++ b/fs-upnp-simple-igd-thread.c
@@ -224,6 +224,7 @@ fs_upnp_simple_igd_thread_add_port (FsUpnpSimpleIgd *self,
   g_source_set_callback (source, add_port_idle_func, data,
       free_add_remove_port_data);
   g_source_attach (source, realself->priv->context);
+  g_main_context_wakeup (realself->priv->context);
 }
 
 static void
@@ -243,6 +244,7 @@ fs_upnp_simple_igd_thread_remove_port (FsUpnpSimpleIgd *self,
   g_source_set_callback (source, remove_port_idle_func, data,
       free_add_remove_port_data);
   g_source_attach (source, realself->priv->context);
+  g_main_context_wakeup (realself->priv->context);
 }
 
 
-- 
1.5.6.5




More information about the farsight-commits mailing list