From c9763066284c99f4d19b7120f19e0090efc7d5dd Mon Sep 17 00:00:00 2001 From: ACB Date: Sun, 14 Jan 2024 11:07:14 +0100 Subject: [PATCH] fix deadlock in RemoteDebugger::debug --- core/debugger/remote_debugger.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/debugger/remote_debugger.cpp b/core/debugger/remote_debugger.cpp index a817ea871d4..ce675d6b06a 100644 --- a/core/debugger/remote_debugger.cpp +++ b/core/debugger/remote_debugger.cpp @@ -435,9 +435,7 @@ void RemoteDebugger::debug(bool p_can_continue, bool p_is_error_breakpoint) { messages.insert(Thread::get_caller_id(), List()); } - mutex.lock(); while (is_peer_connected()) { - mutex.unlock(); flush_output(); _poll_messages();