Release the client handle 36/282836/1
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 12 Oct 2022 06:41:39 +0000 (06:41 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 12 Oct 2022 06:41:39 +0000 (06:41 +0000)
When the client application calls the rpc_port_proxy_connect() function
after the diconnected event is received, the main_client_ and the
delegate_client_ handles have to be released.

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

index 8ddb569..7816276 100644 (file)
@@ -206,6 +206,8 @@ int Proxy::Connect(std::string appid, std::string port_name,
   target_appid_ = std::move(appid);
   port_name_ = std::move(port_name);
   SetRealAppId(target_appid_);
+  main_port_.reset();
+  delegate_port_.reset();
 
   UnsetConnTimer();
   int ret = Aul::PrepareStub(real_appid_, port_name_,