Fix socket closing on shutdown

Previously, sockets were only ever closed when the game specifically requested it.

Thanks @comex on GitHub for the patch submitted via the [Ryubing] issues page.

Co-Authored-By: comex <47517+comex@users.noreply.github.com>
This commit is contained in:
GreemDev
2025-11-05 08:21:54 -06:00
committed by KeatonTheBot
co-authored by comex
parent 457f62d773
commit 9b8517caf3
2 changed files with 31 additions and 6 deletions
@@ -1165,5 +1165,13 @@ namespace Ryujinx.HLE.HOS.Services.Sockets.Bsd
return WriteBsdResult(context, newSockFd, errno);
}
public override void DestroyAtExit()
{
if (_context != null) {
_context.Dispose();
}
}
}
}