Remove superfluous check in Sock 82/138182/5
authorPiotr Sawicki <p.sawicki2@partner.samsung.com>
Tue, 11 Jul 2017 07:00:29 +0000 (09:00 +0200)
committerZofia Abramowska <z.abramowska@samsung.com>
Wed, 12 Jul 2017 15:59:22 +0000 (15:59 +0000)
Change-Id: I160c69f448e0b3b92061392ed5729a7c3e97ce70

src/ipc-lib/sock.cpp

index fccce16..fe8f22b 100644 (file)
@@ -126,10 +126,6 @@ int Sock::connect(const std::string &path) {
         break;
     }
 
-    if (m_fd != -1) {
-        return -1;
-    }
-
     if (policySystemD) {
         m_fd = getSocketFromSystemD();
         if (m_fd >= 0) {