summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/LnxMain.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gui/LnxMain.c b/gui/LnxMain.c
index 2e087ee3..4af1100d 100644
--- a/gui/LnxMain.c
+++ b/gui/LnxMain.c
@@ -466,8 +466,6 @@ int main(int argc, char *argv[]) {
psxCpu->Execute();
}
- if (Config.GdbServer) dbg_stop();
-
return 0;
}
@@ -515,6 +513,7 @@ void SysClose() {
ReleasePlugins();
StopDebugger();
+ if (Config.GdbServer) dbg_stop();
if (emuLog != NULL) fclose(emuLog);
}