Fix unused p2p socket closing

This commit is contained in:
RipleyTom 2024-12-17 12:24:54 +01:00 committed by Elad
parent 30ca2370ab
commit 18f82f0006

View File

@ -333,6 +333,10 @@ void lv2_socket_p2p::close()
auto& nc = g_fxo->get<p2p_context>();
{
std::lock_guard lock(nc.list_p2p_ports_mutex);
if (!nc.list_p2p_ports.contains(port))
return;
auto& p2p_port = ::at32(nc.list_p2p_ports, port);
{
std::lock_guard lock(p2p_port.bound_p2p_vports_mutex);