Procházet zdrojové kódy

Do not allow flushing while already flushing the message queue. Added to help track bugs in ProgressDialog in editor.

Juan Linietsky před 6 roky
rodič
revize
ae99530a8d
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      core/message_queue.cpp

+ 1 - 0
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) {