Fix duplicated method call 76/280576/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 1 Sep 2022 02:15:21 +0000 (02:15 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 1 Sep 2022 02:15:21 +0000 (02:15 +0000)
Currently, the OnConnected() method is called twice. This patch fixes it.

Change-Id: Ie4a5d55ffdff32d9ad46a3c9c35aa1b1122c89a9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/stub-internal.cc

index 989eb0f..a4ca268 100644 (file)
@@ -160,9 +160,6 @@ void Stub::OnFdReceived(const std::string& sender, int fds[2]) {
     }
   }
 
-  _W("sender_appid(%s), instance(%s), main_fd(%d), delegate_fd(%d)",
-      sender.c_str(), main_port->GetInstance().c_str(), fds[0], fds[1]);
-  listener_->OnConnected(sender, main_port->GetInstance());
   DebugPort::GetInst()->AddSession(port_name_, sender, fds[0], fds[1]);
 }