summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/core/gdbstub/gdbstub.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/gdbstub/gdbstub.cpp b/src/core/gdbstub/gdbstub.cpp
index 6ee4df6b5..6d15aeed9 100644
--- a/src/core/gdbstub/gdbstub.cpp
+++ b/src/core/gdbstub/gdbstub.cpp
@@ -1166,8 +1166,10 @@ static void RemoveBreakpoint() {
}
void HandlePacket() {
- if (!IsConnected() && defer_start) {
- ToggleServer(true);
+ if (!IsConnected()) {
+ if (defer_start) {
+ ToggleServer(true);
+ }
return;
}