From 49826bd83f3d0a5aed484ab106c39f1a3453fddc Mon Sep 17 00:00:00 2001 From: "kibak.yoon" Date: Fri, 18 Dec 2015 19:47:07 +0900 Subject: [PATCH] sensord: fix the bug which returns true although there is an error Change-Id: I0ba655602ff782bd947fca3f10e66df4865d5c1c Signed-off-by: kibak.yoon --- src/shared/csocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/csocket.cpp b/src/shared/csocket.cpp index dfb8ce1..9d80138 100644 --- a/src/shared/csocket.cpp +++ b/src/shared/csocket.cpp @@ -336,7 +336,7 @@ bool csocket::connect(const char *sock_path) } else if (!ret) { ERR("select timeout: %d seconds elapsed for %s", tv.tv_sec, get_client_name()); close(); - return true; + return false; } if (!FD_ISSET(m_sock_fd, &write_fds)) { -- 2.7.4