Fix debugging on the android editor.

This commit is contained in:
Relintai 2023-06-15 11:30:26 +02:00
parent c978f27634
commit 6c70361a07

View File

@ -429,7 +429,12 @@ void ScriptDebuggerRemote::_poll_messages() {
Thread::ID thread = cmd[1]; Thread::ID thread = cmd[1];
if (!incoming_messages.has(thread)) { if (!incoming_messages.has(thread)) {
continue; // This thread is not around to receive the messages if (thread != Thread::get_main_id()) {
continue; // This thread is not around to receive the messages
} else {
incoming_messages.insert(Thread::get_main_id(), List<Message>());
outgoing_messages.insert(Thread::get_main_id(), List<Message>());
}
} }
Message msg; Message msg;