aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-04-01 19:57:32 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-04-01 19:57:32 +0200
commit068b34ab5f0a9e08885b0379b688eec7b86541ff (patch)
tree57e3b8fb71f681d6a9ef703545cef2fd548cf420
parentMORE (diff)
downloadefl-devs/bu5hm4n/eio_suite_fix.tar.gz
-rw-r--r--src/lib/eio/eio_monitor_poll.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/eio/eio_monitor_poll.c b/src/lib/eio/eio_monitor_poll.c
index f8e7ba4912..55cdff6fbf 100644
--- a/src/lib/eio/eio_monitor_poll.c
+++ b/src/lib/eio/eio_monitor_poll.c
@@ -196,7 +196,7 @@ _eio_monitor_fallback_heavy_cb(void *data, Ecore_Thread *thread)
}
cmp->version = backend->version;
- if (ecore_thread_check(thread)) break;
+ if (thread && ecore_thread_check(thread)) break;
}
if (it) eina_iterator_free(it);
@@ -346,12 +346,13 @@ eio_monitor_fallback_add(Eio_Monitor *monitor)
backend->parent = monitor;
monitor->backend = backend;
monitor->fallback = EINA_TRUE;
+
+ //ensure this is initialized here
+ _eio_monitor_fallback_heavy_cb(backend, NULL);
backend->work = ecore_thread_run(_eio_monitor_fallback_heavy_cb,
_eio_monitor_fallback_end_cb,
_eio_monitor_fallback_cancel_cb,
backend);
- //ensure this is initialized here
- _eio_monitor_fallback_heavy_cb(backend, NULL);
}
void