# HG changeset patch # User rosfran # Date 1174921641 -3600 # Node ID 916bec80b82c91969a4e252f560ce1fa2deb0129 # Parent 1eff6a1f72633cf4171956b04c21db43ffd0e9c7 [svn r454] Removes the g_main_context_acquire_context. diff -r 1eff6a1f7263 -r 916bec80b82c gmyth/src/gmyth_monitor_handler.c --- a/gmyth/src/gmyth_monitor_handler.c Mon Mar 26 16:04:46 2007 +0100 +++ b/gmyth/src/gmyth_monitor_handler.c Mon Mar 26 16:07:21 2007 +0100 @@ -146,17 +146,17 @@ { GMythMonitorHandler *monitor = GMYTH_MONITOR_HANDLER (object); GSource* source = NULL; - GMainContext* context = g_main_context_default(); + //GMainContext* context = g_main_context_default(); gmyth_monitor_handler_close(monitor); monitor->allow_msgs_listener = FALSE; - if ( context != NULL && monitor->sid_io_watch != -1 ) + if ( monitor->sid_io_watch != -1 ) { - g_main_context_acquire( context ); + //g_main_context_acquire( context ); - source = g_main_context_find_source_by_id( context, + source = g_main_context_find_source_by_id( NULL, monitor->sid_io_watch ); if ( source != NULL ) @@ -164,7 +164,7 @@ g_source_destroy( source ); } - g_main_context_release( context ); + //g_main_context_release( context ); } @@ -561,6 +561,8 @@ if ( channel != NULL ) { monitor->allow_msgs_listener = TRUE; + + monitor->sid_io_watch = -1; monitor->sid_io_watch = g_io_add_watch( channel, G_IO_IN | G_IO_HUP, (GIOFunc)gmyth_monitor_handler_listener, monitor );