Failed attempt at fixing disable debugger when 1+ sessions are open

This commit is contained in:
TuxSH
2019-06-14 00:40:41 +02:00
parent 648541bb1f
commit 84c5cf0661
4 changed files with 31 additions and 11 deletions

View File

@@ -148,6 +148,7 @@ void DebuggerMenu_DisableDebugger(void)
if(initialized)
{
svcSignalEvent(gdbServer.super.shall_terminate_event);
server_kill_connections(&gdbServer.super);
res = MyThread_Join(&debuggerDebugThread, 5 * 1000 * 1000 * 1000LL);
if(res == 0)
res = MyThread_Join(&debuggerSocketThread, 5 * 1000 * 1000 * 1000LL);