raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=5a8632ab36573a5e0446d4fba3cd2da1cf9e2150

commit 5a8632ab36573a5e0446d4fba3cd2da1cf9e2150
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Mon Oct 5 16:00:47 2015 +0900

    ecore - detect nested ecore_main_loop_begins from silly code
    
    @feature
---
 src/lib/ecore/ecore_main.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/lib/ecore/ecore_main.c b/src/lib/ecore/ecore_main.c
index 267c5ed..97cfaf8 100644
--- a/src/lib/ecore/ecore_main.c
+++ b/src/lib/ecore/ecore_main.c
@@ -972,6 +972,11 @@ EAPI void
 ecore_main_loop_begin(void)
 {
    EINA_MAIN_LOOP_CHECK_RETURN;
+   if (in_main_loop > 0)
+     {
+        ERR("Running ecore_main_loop_begin() inside an existing main loop");
+        return;
+     }
    eina_evlog("+mainloop", NULL, 0.0, NULL);
 #ifdef HAVE_SYSTEMD
    sd_notify(0, "READY=1");

-- 


Reply via email to