소스 검색

gdbstub: small logic bug fix with defer_start

Gauvain "GovanifY" Roussel-Tarbouriech 6 년 전
부모
커밋
eae2ed6b07
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  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;
     }