diff options
author | qarmin <mikrutrafal54@gmail.com> | 2019-05-30 10:28:03 +0200 |
---|---|---|
committer | qarmin <mikrutrafal54@gmail.com> | 2019-05-30 10:28:03 +0200 |
commit | a32f020b53d36bed8de61d4313c572c72bcde3bb (patch) | |
tree | a1ba3ff513bb63761951a3d24c338b4cae6435d5 /core/io | |
parent | 8c923fc61740afd560e6c814f7ef19b0cdc30112 (diff) |
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)) |