sensord: fix the bug which returns true although there is an error 80/54880/3
authorkibak.yoon <kibak.yoon@samsung.com>
Fri, 18 Dec 2015 10:47:07 +0000 (19:47 +0900)
committerkibak.yoon <kibak.yoon@samsung.com>
Fri, 18 Dec 2015 10:59:59 +0000 (19:59 +0900)
Change-Id: I0ba655602ff782bd947fca3f10e66df4865d5c1c
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/shared/csocket.cpp

index dfb8ce1..9d80138 100644 (file)
@@ -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)) {