mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-09 23:31:04 +02:00
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:
committed by
KeatonTheBot
co-authored by
comex
parent
457f62d773
commit
9b8517caf3
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user