auto p = static_cast<std::shared_ptr<::ProxyExt>*>(h);
auto* proxy = p->get();
+ if (proxy->IsDestroying()) {
+ _E("already destroyed. handle(%p)", proxy);
+ abort();
+ }
+
_W("rpc_port_proxy_destroy(%p)", proxy);
if (getpid() == gettid()) {
delete p;
_W("rpc_port_stub_destroy(%p)", h);
auto p = static_cast<::StubExt*>(h);
+ if (p->IsDestroying()) {
+ _E("already destroyed. handle(%p)", h);
+ abort();
+ }
+
+ p->SetDestroying(true);
aul_rpc_port_usr_destroy(p->GetPortName().c_str(), rpc_port_get_target_uid());
if (getpid() == gettid()) {
delete p;
}
p->Ignore();
- p->SetDestroying(true);
g_idle_add_full(G_PRIORITY_HIGH,
[](gpointer data) -> gboolean {
auto p = static_cast<::StubExt*>(data);