diff options
author | Juan Linietsky <reduzio@gmail.com> | 2019-01-14 11:04:25 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2019-01-14 11:04:25 -0300 |
commit | ae99530a8d15bc1cc88ff764e701aaa67855641b (patch) | |
tree | 31478cd3ee926ed4968bf808f1156043b6fb17df /core | |
parent | 4bb0080b3df28a3003bfffd6285602664a4279c9 (diff) |
Do not allow flushing while already flushing the message queue. Added to help track bugs in ProgressDialog in editor.
Diffstat (limited to 'core')
-rw-r--r-- | core/message_queue.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |