You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00: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:
@@ -271,6 +271,7 @@ void MessageQueue::flush() {
|
|||||||
//using reverse locking strategy
|
//using reverse locking strategy
|
||||||
_THREAD_SAFE_LOCK_
|
_THREAD_SAFE_LOCK_
|
||||||
|
|
||||||
|
ERR_FAIL_COND(flushing);
|
||||||
flushing = true;
|
flushing = true;
|
||||||
|
|
||||||
while (read_pos < buffer_end) {
|
while (read_pos < buffer_end) {
|
||||||
|
|||||||
Reference in New Issue
Block a user