From de643868c567216e91a51515dfeeec64218ce27f Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Tue, 4 Oct 2011 11:38:52 +0000 Subject: [PATCH] all in comments. SVN revision: 63805 --- src/bin/e_fm_op.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/bin/e_fm_op.c b/src/bin/e_fm_op.c index f1163d817..debfb47a2 100644 --- a/src/bin/e_fm_op.c +++ b/src/bin/e_fm_op.c @@ -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; }