mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 22:33:34 +02:00
Merge pull request #14354 from SamGondelman/deadlock
Case 19735: Fix ResourceCache mutex issues
This commit is contained in:
commit
5d0be31fe7
2 changed files with 3 additions and 1 deletions
libraries/networking/src
|
@ -740,6 +740,8 @@ void Resource::handleReplyFinished() {
|
|||
|
||||
setSize(_bytesTotal);
|
||||
|
||||
// Make sure we keep the Resource alive here
|
||||
auto self = _self.lock();
|
||||
ResourceCache::requestCompleted(_self);
|
||||
|
||||
auto result = _request->getResult();
|
||||
|
|
|
@ -62,7 +62,7 @@ static const qint64 MAX_UNUSED_MAX_SIZE = MAXIMUM_CACHE_SIZE;
|
|||
class ResourceCacheSharedItems : public Dependency {
|
||||
SINGLETON_DEPENDENCY
|
||||
|
||||
using Mutex = std::mutex;
|
||||
using Mutex = std::recursive_mutex;
|
||||
using Lock = std::unique_lock<Mutex>;
|
||||
|
||||
public:
|
||||
|
|
Loading…
Reference in a new issue