VERY experimental Nintendo Switch 2 emulator
C++
gdbstub: small logic bug fix with defer_start
Gauvain "GovanifY" Roussel-Tarbouriechfc6dfe012c13
diff --git a/src/core/gdbstub/gdbstub.cpp b/src/core/gdbstub/gdbstub.cppindex 6ee4df6b5c..6d15aeed9c 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;}