all in comments.
authorCarsten Haitzler <raster@rasterman.com>
Tue, 4 Oct 2011 11:38:52 +0000 (11:38 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Tue, 4 Oct 2011 11:38:52 +0000 (11:38 +0000)
SVN revision: 63805

src/bin/e_fm_op.c

index f1163d8..debfb47 100644 (file)
@@ -674,6 +674,14 @@ _e_fm_op_work_idler(void *data __UNUSED__)
         if ((!_e_fm_op_scan_idler_p) && (!_e_fm_op_work_error) && 
             (!_e_fm_op_scan_error))
           ecore_main_loop_quit();
+        // if 
+        // _e_fm_op_scan_idler_p == NULL &&
+        // _e_fm_op_work_error == NULL &&
+        // _e_fm_op_scan_error == 1
+        // we can spin forever. why are we spinning at all? there are no
+        // tasks to be done. we have an error. wait for it to be handled
+        if (!_e_fm_op_work_queue)
+           ecore_main_loop_quit();
 
         return ECORE_CALLBACK_RENEW;
      }