If the timeout occurs between OnAppeared and Connected events,
even if try to reconnect, the port may not be valid.
After applying this patch, the client is reset to protect the possibility of accessing invalid ports.
Change-Id: Ic268bac9f899f96c2ceda196f5def1abdd624159
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
}
proxy->Cancel();
+ proxy->main_client_.reset();
+ proxy->delegate_client_.reset();
DestroyWeakPtr(proxy->conn_timer_data_);
proxy->conn_timer_data_ = nullptr;