mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 07:35:41 +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.");
|
||||
s_gdb_listen_socket->Close();
|
||||
s_gdb_listen_socket.reset();
|
||||
System::ReleaseSocketMultiplexer();
|
||||
}
|
||||
|
|
|
@ -178,6 +178,7 @@ void PINEServer::Shutdown()
|
|||
// also closes the listener
|
||||
if (s_listen_socket)
|
||||
{
|
||||
s_listen_socket->Close();
|
||||
s_listen_socket.reset();
|
||||
System::ReleaseSocketMultiplexer();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue