forked from enlightenment/efl
evas/cserve2: Modify usage of EVAS_CSERVE2 env
Check the value of "EVAS_CSERVE2" instead of just checking if it is defined in the environment. So we can set to 0 to disable.
This commit is contained in:
parent
877532e000
commit
1a324754fd
|
@ -55,7 +55,11 @@ evas_init(void)
|
||||||
if (!evas_async_events_init())
|
if (!evas_async_events_init())
|
||||||
goto shutdown_module;
|
goto shutdown_module;
|
||||||
#ifdef EVAS_CSERVE2
|
#ifdef EVAS_CSERVE2
|
||||||
if (getenv("EVAS_CSERVE2")) evas_cserve2_init();
|
{
|
||||||
|
const char *env;
|
||||||
|
env = getenv("EVAS_CSERVE2");
|
||||||
|
if (env && atoi(env)) evas_cserve2_init();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
_evas_preload_thread_init();
|
_evas_preload_thread_init();
|
||||||
|
|
||||||
|
@ -96,7 +100,7 @@ evas_shutdown(void)
|
||||||
EINA_LOG_STATE_SHUTDOWN);
|
EINA_LOG_STATE_SHUTDOWN);
|
||||||
|
|
||||||
#ifdef EVAS_CSERVE2
|
#ifdef EVAS_CSERVE2
|
||||||
if (getenv("EVAS_CSERVE2"))
|
if (evas_cserve2_use_get())
|
||||||
evas_cserve2_shutdown();
|
evas_cserve2_shutdown();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue