ecore_con: Properly shutdown and unregister log domain

I believe the comment saying we should not unregister the log domain is
invalid as we try to flush the pending ecore events.
This commit is contained in:
Jean-Philippe Andre 2017-12-18 12:04:05 +09:00
parent 81bad9f47c
commit c0c5e72408
1 changed files with 5 additions and 9 deletions

View File

@ -92,13 +92,10 @@ ecore_con_init(void)
if (!ecore_init())
goto ecore_err;
_ecore_con_log_dom = eina_log_domain_register
("ecore_con", ECORE_CON_DEFAULT_LOG_COLOR);
if (_ecore_con_log_dom < 0)
{
_ecore_con_log_dom = eina_log_domain_register
("ecore_con", ECORE_CON_DEFAULT_LOG_COLOR);
if (_ecore_con_log_dom < 0)
goto ecore_con_log_error;
}
goto ecore_con_log_error;
_efl_net_proxy_helper_init();
@ -155,9 +152,8 @@ ecore_con_shutdown(void)
ecore_con_legacy_shutdown();
/* do not unregister log domain as ecore_con_servers may be pending deletion
* due Ecore_Event.
*/
eina_log_domain_unregister(_ecore_con_log_dom);
_ecore_con_log_dom = -1;
ecore_shutdown();
#ifdef _WIN32