From: kibak.yoon Date: Fri, 18 Dec 2015 10:47:07 +0000 (+0900) Subject: sensord: fix the bug which returns true although there is an error X-Git-Tag: submit/tizen/20151218.121039^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=49826bd83f3d0a5aed484ab106c39f1a3453fddc;p=platform%2Fcore%2Fsystem%2Fsensord.git sensord: fix the bug which returns true although there is an error Change-Id: I0ba655602ff782bd947fca3f10e66df4865d5c1c Signed-off-by: kibak.yoon --- 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)) {