mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-03-14 20:50:18 +00:00
Restart socket when able
This commit is contained in:
parent
cdb489d0cb
commit
645959c490
1 changed files with 7 additions and 1 deletions
|
@ -26,6 +26,7 @@ namespace Ryujinx.HLE.Debugger
|
||||||
private BlockingCollection<IMessage> Messages = new BlockingCollection<IMessage>(1);
|
private BlockingCollection<IMessage> Messages = new BlockingCollection<IMessage>(1);
|
||||||
private Thread SocketThread;
|
private Thread SocketThread;
|
||||||
private Thread HandlerThread;
|
private Thread HandlerThread;
|
||||||
|
private bool _shuttingDown = false;
|
||||||
|
|
||||||
private ulong? cThread;
|
private ulong? cThread;
|
||||||
private ulong? gThread;
|
private ulong? gThread;
|
||||||
|
@ -634,7 +635,10 @@ namespace Ryujinx.HLE.Debugger
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
Logger.Notice.Print(LogClass.GdbStub, "GDB stub socket closed");
|
Logger.Notice.Print(LogClass.GdbStub, "GDB stub socket closed");
|
||||||
return;
|
if (!_shuttingDown)
|
||||||
|
{
|
||||||
|
goto restartListen;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -690,6 +694,8 @@ namespace Ryujinx.HLE.Debugger
|
||||||
{
|
{
|
||||||
if (disposing)
|
if (disposing)
|
||||||
{
|
{
|
||||||
|
_shuttingDown = true;
|
||||||
|
|
||||||
if (HandlerThread.IsAlive)
|
if (HandlerThread.IsAlive)
|
||||||
{
|
{
|
||||||
Messages.Add(new AbortMessage());
|
Messages.Add(new AbortMessage());
|
||||||
|
|
Loading…
Reference in a new issue