mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-20 04:16:34 +00:00
Kill the message handler thread when killing the debugger
This commit is contained in:
parent
6b74bcec7c
commit
bca3939a65
2 changed files with 11 additions and 1 deletions
|
@ -167,6 +167,9 @@ namespace Ryujinx.HLE.Debugger
|
|||
DebugProcess.DebugStop();
|
||||
Reply($"T05thread:{ctx.ThreadUid:x};");
|
||||
break;
|
||||
|
||||
case KillMessage:
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -732,8 +735,9 @@ namespace Ryujinx.HLE.Debugger
|
|||
ReadStream?.Close();
|
||||
WriteStream?.Close();
|
||||
DebuggerThread.Join();
|
||||
Messages.Dispose();
|
||||
Messages.Add(new KillMessage());
|
||||
MessageHandlerThread.Join();
|
||||
Messages.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
6
src/Ryujinx.HLE/Debugger/Message/KillMessage.cs
Normal file
6
src/Ryujinx.HLE/Debugger/Message/KillMessage.cs
Normal file
|
@ -0,0 +1,6 @@
|
|||
namespace Ryujinx.HLE.Debugger
|
||||
{
|
||||
struct KillMessage : IMessage
|
||||
{
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue