1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 12:12:50 +01:00

Remove destructor dependencies on nph

This commit is contained in:
RipleyTom 2023-12-23 22:40:34 +01:00 committed by Elad Ashkenazi
parent 6a7fb4c10c
commit 69238bfc23
2 changed files with 0 additions and 14 deletions

View File

@ -56,15 +56,6 @@ lv2_socket_native::~lv2_socket_native()
::close(socket);
#endif
}
if (bound_port)
{
if (auto* nph = g_fxo->try_get<named_thread<np::np_handler>>())
{
nph->upnp_remove_port_mapping(bound_port, type == SYS_NET_SOCK_STREAM ? "TCP" : "UDP");
}
bound_port = 0;
}
}
s32 lv2_socket_native::create_socket()

View File

@ -90,11 +90,6 @@ nt_p2p_port::~nt_p2p_port()
::close(p2p_socket);
#endif
}
if (auto* nph = g_fxo->try_get<named_thread<np::np_handler>>())
{
nph->upnp_remove_port_mapping(port, "UDP");
}
}
void nt_p2p_port::dump_packet(p2ps_encapsulated_tcp* tcph)