fix background scheduler with multiple tasks
[lttv.git] / ltt / branches / poly / lttv / modules / gui / lttvwindow / lttvwindow / lttvwindowtraces.c
index b210fbba087ba90650e0e71bb0f77a2276cb0ed4..1ce869990fe2e10ee69ad30f18e4b7773daf913d 100644 (file)
@@ -1174,12 +1174,16 @@ gboolean lttvwindowtraces_process_pending_requests(LttvTrace *trace)
             }
           }
         }
-        
-        /* - return FALSE (scheduler stopped) */
-        g_debug("Background computation scheduler stopped");
-        g_info("Background computation finished for trace %p", trace);
-        /* FIXME : remove status bar info, need context id and message id */
-        ret_val = FALSE;
+        /* - if list_out is empty */
+        if(g_slist_length(*list_out) == 0) {
+          /* - return FALSE (scheduler stopped) */
+          g_debug("Background computation scheduler stopped");
+          g_info("Background computation finished for trace %p", trace);
+          /* FIXME : remove status bar info, need context id and message id */
+          ret_val = FALSE;
+        } else {
+          ret_val = TRUE;
+        }
       } else {
         /* 3.4 else, end of trace not reached */
         /* - return TRUE (scheduler still registered) */
This page took 0.022776 seconds and 4 git commands to generate.