Explorar o código

gdbstub: small logic bug fix with defer_start

Gauvain "GovanifY" Roussel-Tarbouriech %!s(int64=6) %!d(string=hai) anos
pai
achega
eae2ed6b07
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      src/core/gdbstub/gdbstub.cpp

+ 4 - 2
src/core/gdbstub/gdbstub.cpp

@@ -1166,8 +1166,10 @@ static void RemoveBreakpoint() {
 }
 }
 
 
 void HandlePacket() {
 void HandlePacket() {
-    if (!IsConnected() && defer_start) {
-        ToggleServer(true);
+    if (!IsConnected()) {
+        if (defer_start) {
+            ToggleServer(true);
+        }
         return;
         return;
     }
     }