Index: gmain.c
===================================================================
RCS file: /cvs/gnome/glib/glib/gmain.c,v
retrieving revision 1.100
diff -u -p -r1.100 gmain.c
--- gmain.c	25 Aug 2003 16:20:41 -0000	1.100
+++ gmain.c	29 Oct 2003 10:53:41 -0000
@@ -2313,6 +2313,7 @@ g_main_context_iterate (GMainContext *co
   gint max_priority;
   gint timeout;
   gboolean some_ready;
+  gboolean some_ready_now;
   gint nfds, allocated_nfds;
   GPollFD *fds = NULL;
   
@@ -2375,7 +2376,9 @@ g_main_context_iterate (GMainContext *co
   
   g_main_context_poll (context, timeout, max_priority, fds, nfds);
   
-  g_main_context_check (context, max_priority, fds, nfds);
+  some_ready_now = g_main_context_check (context, max_priority, fds, nfds);
+  if (!some_ready)
+    some_ready = some_ready_now;
   
   if (dispatch)
     g_main_context_dispatch (context);
