From 8fedd5c240b863800879ed3aa8ba3073e959553b Mon Sep 17 00:00:00 2001 From: "Gauvain \"GovanifY\" Roussel-Tarbouriech" Date: Mon, 24 Feb 2020 14:30:24 +0100 Subject: [PATCH] gdbstub: small logic bug fix with defer_start --- src/core/gdbstub/gdbstub.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/gdbstub/gdbstub.cpp b/src/core/gdbstub/gdbstub.cpp index bf15f1011..1e42ff5e4 100644 --- a/src/core/gdbstub/gdbstub.cpp +++ b/src/core/gdbstub/gdbstub.cpp @@ -1043,8 +1043,10 @@ static void RemoveBreakpoint() { } void HandlePacket() { - if (!IsConnected() && defer_start) { - ToggleServer(true); + if (!IsConnected()) { + if (defer_start) { + ToggleServer(true); + } return; }