1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Fixes bugs found by Sonarcloud and Coverity

This commit is contained in:
qarmin
2020-03-02 19:17:20 +01:00
parent 0c22f5a447
commit 1f209bfc41
10 changed files with 25 additions and 13 deletions

View File

@@ -268,7 +268,10 @@ void MessageQueue::flush() {
//using reverse locking strategy
_THREAD_SAFE_LOCK_
ERR_FAIL_COND(flushing); //already flushing, you did something odd
if (flushing) {
_THREAD_SAFE_UNLOCK_
ERR_FAIL_COND(flushing); //already flushing, you did something odd
}
flushing = true;
while (read_pos < buffer_end) {