Delay dns lookup until after initializing the server. If the hostname

is in cache, it will execute the callback without delay.


SVN revision: 16476
This commit is contained in:
sebastid 2005-09-03 03:07:29 +00:00 committed by sebastid
parent 42bf60c59a
commit ceb143f80c
1 changed files with 4 additions and 4 deletions

View File

@ -440,10 +440,6 @@ ecore_con_server_connect(Ecore_Con_Type compl_type,
}
}
}
else if (type == ECORE_CON_REMOTE_SYSTEM)
{
ecore_con_dns_lookup(name, _ecore_con_cb_dns_lookup, svr);
}
svr->name = strdup(name);
if (!svr->name) goto error;
@ -456,6 +452,10 @@ ecore_con_server_connect(Ecore_Con_Type compl_type,
svr->clients = ecore_list_new();
ecore_list_append(servers, svr);
ECORE_MAGIC_SET(svr, ECORE_MAGIC_CON_SERVER);
if (type == ECORE_CON_REMOTE_SYSTEM)
ecore_con_dns_lookup(svr->name, _ecore_con_cb_dns_lookup, svr);
return svr;
error: