clouseau: refined connet_to_daemon func

Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 71061
This commit is contained in:
Aharon Hillel 2012-05-14 14:41:04 +00:00 committed by Tom Hacohen
parent 8f8997ae67
commit d80edc1e31
1 changed files with 4 additions and 1 deletions

View File

@ -185,7 +185,10 @@ _connect_to_daemon(void)
ecore_init();
ecore_ipc_init();
if (!(svr = ecore_ipc_server_connect(ECORE_IPC_REMOTE_SYSTEM, LOCALHOST, PORT, NULL)))
svr = ecore_ipc_server_connect(ECORE_IPC_REMOTE_SYSTEM,
LOCALHOST, PORT, NULL);
if ((!svr) || (!ecore_ipc_server_connected_get(svr)))
{
printf("could not connect to the server: %s, port %d.\n",
address, PORT);