Explorar el Código

gdbstub: small logic bug fix with defer_start

Gauvain "GovanifY" Roussel-Tarbouriech hace 6 años
padre
commit
eae2ed6b07
Se han modificado 1 ficheros con 4 adiciones y 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() {
-    if (!IsConnected() && defer_start) {
-        ToggleServer(true);
+    if (!IsConnected()) {
+        if (defer_start) {
+            ToggleServer(true);
+        }
         return;
     }