Fix "disable debugger" finally

This commit is contained in:
TuxSH
2019-06-16 22:06:05 +02:00
parent d989c45c3d
commit e989309771
4 changed files with 24 additions and 23 deletions

View File

@@ -147,13 +147,9 @@ void DebuggerMenu_DisableDebugger(void)
if(initialized)
{
GDB_LockAllContexts(&gdbServer);
svcSignalEvent(gdbServer.super.shall_terminate_event);
//server_kill_connections(&gdbServer.super);
server_set_should_close_all(&gdbServer.super);
GDB_UnlockAllContexts(&gdbServer);
server_kill_connections(&gdbServer.super);
//server_set_should_close_all(&gdbServer.super);
res = MyThread_Join(&debuggerDebugThread, 2 * 1000 * 1000 * 1000LL);
if(res == 0)