mirror of
https://github.com/godotengine/godot.git
synced 2025-04-13 01:00:35 +08:00
Do not allow flushing while already flushing the message queue. Added to help track bugs in ProgressDialog in editor.
This commit is contained in:
parent
4bb0080b3d
commit
ae99530a8d
@ -271,6 +271,7 @@ void MessageQueue::flush() {
|
||||
//using reverse locking strategy
|
||||
_THREAD_SAFE_LOCK_
|
||||
|
||||
ERR_FAIL_COND(flushing);
|
||||
flushing = true;
|
||||
|
||||
while (read_pos < buffer_end) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user