From ae99530a8d15bc1cc88ff764e701aaa67855641b Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Mon, 14 Jan 2019 11:04:25 -0300 Subject: Do not allow flushing while already flushing the message queue. Added to help track bugs in ProgressDialog in editor. --- core/message_queue.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/core/message_queue.cpp b/core/message_queue.cpp index 27da2c099a..41f5ed8980 100644 --- a/core/message_queue.cpp +++ b/core/message_queue.cpp @@ -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) { -- cgit v1.2.3