From eae2ed6b07054a7cb9eca1bc930f4bb9f973a329 Mon Sep 17 00:00:00 2001 From: "Gauvain \"GovanifY\" Roussel-Tarbouriech" Date: Mon, 24 Feb 2020 14:30:24 +0100 Subject: gdbstub: small logic bug fix with defer_start --- src/core/gdbstub/gdbstub.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/gdbstub/gdbstub.cpp b/src/core/gdbstub/gdbstub.cpp index 6ee4df6b5..6d15aeed9 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; } -- cgit v1.2.3