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:
parent
6a7fb4c10c
commit
69238bfc23
@ -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()
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user