Merge pull request #87169 from 0x0ACB/debugger_deadlock

Fix deadlock in `RemoteDebugger::debug`
This commit is contained in:
Rémi Verschelde 2024-01-16 10:36:25 +01:00
commit 1debbaa468
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -435,9 +435,7 @@ void RemoteDebugger::debug(bool p_can_continue, bool p_is_error_breakpoint) {
messages.insert(Thread::get_caller_id(), List<Message>());
}
mutex.lock();
while (is_peer_connected()) {
mutex.unlock();
flush_output();
_poll_messages();