mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-29 17:15:40 +00:00
GDB/PINE: Fix listen socket leak on shutdown
This commit is contained in:
parent
9a70003b70
commit
b06fceffa4
|
@ -547,6 +547,7 @@ void GDBServer::Shutdown()
|
||||||
}
|
}
|
||||||
|
|
||||||
INFO_LOG("Stopping GDB server.");
|
INFO_LOG("Stopping GDB server.");
|
||||||
|
s_gdb_listen_socket->Close();
|
||||||
s_gdb_listen_socket.reset();
|
s_gdb_listen_socket.reset();
|
||||||
System::ReleaseSocketMultiplexer();
|
System::ReleaseSocketMultiplexer();
|
||||||
}
|
}
|
||||||
|
|
|
@ -178,6 +178,7 @@ void PINEServer::Shutdown()
|
||||||
// also closes the listener
|
// also closes the listener
|
||||||
if (s_listen_socket)
|
if (s_listen_socket)
|
||||||
{
|
{
|
||||||
|
s_listen_socket->Close();
|
||||||
s_listen_socket.reset();
|
s_listen_socket.reset();
|
||||||
System::ReleaseSocketMultiplexer();
|
System::ReleaseSocketMultiplexer();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue