internal_network: cancel pending socket operations on application process termination

This commit is contained in:
Liam 2023-08-26 18:18:13 -04:00
parent bc4e58eb51
commit 531572b411
3 changed files with 88 additions and 3 deletions

View file

@ -404,6 +404,7 @@ struct System::Impl {
gpu_core->NotifyShutdown();
}
Network::CancelPendingSocketOperations();
kernel.SuspendApplication(true);
if (services) {
services->KillNVNFlinger();
@ -425,6 +426,7 @@ struct System::Impl {
debugger.reset();
kernel.Shutdown();
memory.Reset();
Network::RestartSocketOperations();
if (auto room_member = room_network.GetRoomMember().lock()) {
Network::GameInfo game_info{};