connman: fix default technology change

Log "default technology changed" only if it really changed



SVN revision: 48481
This commit is contained in:
Lucas De Marchi 2010-04-30 15:27:36 +00:00
parent 9869d0e479
commit 56fff0c70f
1 changed files with 2 additions and 2 deletions

View File

@ -830,8 +830,8 @@ _connman_default_service_changed(E_Connman_Module_Context *ctxt)
if (!e_connman_manager_technology_default_get(&tech))
tech = NULL;
eina_stringshare_replace(&ctxt->technology, tech);
DBG("Manager technology is '%s'", tech);
if (eina_stringshare_replace(&ctxt->technology, tech))
DBG("Manager technology is '%s'", tech);
if (!e_connman_manager_offline_mode_get(&ctxt->offline_mode))
ctxt->offline_mode = EINA_FALSE;