Merge pull request #15294 from poke1024/fix-debug-hangs
Fix Godot getting swamped by debug events
This commit is contained in:
commit
0df857f9f2
1 changed files with 5 additions and 0 deletions
|
@ -1053,6 +1053,8 @@ void ScriptEditorDebugger::_notification(int p_what) {
|
|||
break;
|
||||
};
|
||||
|
||||
const uint64_t until = OS::get_singleton()->get_ticks_msec() + 20;
|
||||
|
||||
while (ppeer->get_available_packet_count() > 0) {
|
||||
|
||||
if (pending_in_queue) {
|
||||
|
@ -1117,6 +1119,9 @@ void ScriptEditorDebugger::_notification(int p_what) {
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (OS::get_singleton()->get_ticks_msec() > until)
|
||||
break;
|
||||
}
|
||||
|
||||
} break;
|
||||
|
|
Loading…
Reference in a new issue