--- libaitrpc/src/cli.c 2012/05/17 21:14:13 1.9.2.13 +++ libaitrpc/src/cli.c 2012/05/17 21:40:02 1.9.2.14 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: cli.c,v 1.9.2.13 2012/05/17 21:14:13 misho Exp $ +* $Id: cli.c,v 1.9.2.14 2012/05/17 21:40:02 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -292,11 +292,7 @@ rpc_cli_execCall(rpc_cli_t *cli, int noreply, u_short pfd.events = POLLOUT; if ((ret = poll(&pfd, 1, DEF_RPC_TIMEOUT * 1000)) == -1 || pfd.revents & (POLLERR | POLLHUP | POLLNVAL)) { - if (ret) - LOGERR; - else - rpc_SetErr(ETIMEDOUT, "Timeout, no ready to send"); - + LOGERR; return -1; } if ((ret = send(cli->cli_sock, buf, wlen, MSG_NOSIGNAL)) == -1) {