Browse Source

gdbstub: small logic bug fix with defer_start

Gauvain "GovanifY" Roussel-Tarbouriech 6 năm trước cách đây
mục cha
commit
eae2ed6b07
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  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;
     }