GDB/PINE: Fix listen socket leak on shutdown

This commit is contained in:
Stenzek 2024-07-06 21:37:01 +10:00
parent 9a70003b70
commit b06fceffa4
No known key found for this signature in database
2 changed files with 2 additions and 0 deletions

View file

@ -547,6 +547,7 @@ void GDBServer::Shutdown()
}
INFO_LOG("Stopping GDB server.");
s_gdb_listen_socket->Close();
s_gdb_listen_socket.reset();
System::ReleaseSocketMultiplexer();
}

View file

@ -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();
}