From: Hwankyu Jhun Date: Thu, 25 Apr 2024 05:36:55 +0000 (+0900) Subject: Notify stub termination for local execution mode X-Git-Tag: accepted/tizen/8.0/unified/20240619.075732~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0e8718b0fdab5baf752a96ba2fd82b98ab127ccd;p=platform%2Fcore%2Fappfw%2Ftidl.git Notify stub termination for local execution mode While calling a destructor of the stub, the proxy should get the disconnected event from the stub. Change-Id: I2ae41f3f69ede236059183ca0ce217beb2ff7a28 Signed-off-by: Hwankyu Jhun --- diff --git a/idlc/gen/version2/cpp_stub_body_generator_cb.hh b/idlc/gen/version2/cpp_stub_body_generator_cb.hh index 5cf1a7d..ed24abe 100644 --- a/idlc/gen/version2/cpp_stub_body_generator_cb.hh +++ b/idlc/gen/version2/cpp_stub_body_generator_cb.hh @@ -293,10 +293,13 @@ void* ::ServiceBase::GetContext() const { ::~() { _W(" dtor"); - _context_.reset(); - for (auto& service : services_) + for (auto& service : services_) { service->OnTerminate(); + if (_context_) + _context_->Disconnect(service->GetContext()); + } + _context_.reset(); if (stub_ != nullptr) rpc_port_stub_destroy(stub_); }