mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-19 12:40:29 +00:00
Fix nph and nt interderp
This commit is contained in:
parent
50214a6a07
commit
732d9b83ba
@ -59,8 +59,10 @@ lv2_socket_native::~lv2_socket_native()
|
|||||||
|
|
||||||
if (bound_port)
|
if (bound_port)
|
||||||
{
|
{
|
||||||
auto& nph = g_fxo->get<named_thread<np::np_handler>>();
|
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");
|
{
|
||||||
|
nph->upnp_remove_port_mapping(bound_port, type == SYS_NET_SOCK_STREAM ? "TCP" : "UDP");
|
||||||
|
}
|
||||||
bound_port = 0;
|
bound_port = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -91,8 +91,10 @@ nt_p2p_port::~nt_p2p_port()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
auto& nph = g_fxo->get<named_thread<np::np_handler>>();
|
if (auto* nph = g_fxo->try_get<named_thread<np::np_handler>>())
|
||||||
nph.upnp_remove_port_mapping(port, "UDP");
|
{
|
||||||
|
nph->upnp_remove_port_mapping(port, "UDP");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void nt_p2p_port::dump_packet(p2ps_encapsulated_tcp* tcph)
|
void nt_p2p_port::dump_packet(p2ps_encapsulated_tcp* tcph)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user