diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-05-30 12:01:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-30 12:01:20 +0200 |
commit | 9d6294c78a340c6452f0b3f11a67c186647d6ed7 (patch) | |
tree | a1ba3ff513bb63761951a3d24c338b4cae6435d5 /core/io | |
parent | 8c923fc61740afd560e6c814f7ef19b0cdc30112 (diff) | |
parent | a32f020b53d36bed8de61d4313c572c72bcde3bb (diff) |
Merge pull request #29304 from qarmin/fix_unlocking_mutex
Properly unlock mutex
Diffstat (limited to 'core/io')
-rw-r--r-- | core/io/file_access_network.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/io/file_access_network.cpp b/core/io/file_access_network.cpp index 722e62c54e..2572602e16 100644 --- a/core/io/file_access_network.cpp +++ b/core/io/file_access_network.cpp @@ -118,7 +118,10 @@ void FileAccessNetworkClient::_thread_func() { FileAccessNetwork *fa = NULL; if (response != FileAccessNetwork::RESPONSE_DATA) { - ERR_FAIL_COND(!accesses.has(id)); + if (!accesses.has(id)) { + unlock_mutex(); + ERR_FAIL_COND(!accesses.has(id)); + } } if (accesses.has(id)) |