mirror of
https://github.com/lubosz/overte.git
synced 2025-04-25 01:23:57 +02:00
Fix ResourceManager not properly shutting down thread
This commit is contained in:
parent
384851c289
commit
59ca2f9977
2 changed files with 6 additions and 0 deletions
|
@ -38,6 +38,11 @@ ResourceManager::ResourceManager(bool atpSupportEnabled) : _atpSupportEnabled(at
|
|||
_thread.start();
|
||||
}
|
||||
|
||||
ResourceManager::~ResourceManager() {
|
||||
_thread.terminate();
|
||||
_thread.wait();
|
||||
}
|
||||
|
||||
void ResourceManager::setUrlPrefixOverride(const QString& prefix, const QString& replacement) {
|
||||
QMutexLocker locker(&_prefixMapLock);
|
||||
if (replacement.isEmpty()) {
|
||||
|
|
|
@ -28,6 +28,7 @@ class ResourceManager: public QObject, public Dependency {
|
|||
|
||||
public:
|
||||
ResourceManager(bool atpSupportEnabled = true);
|
||||
~ResourceManager();
|
||||
|
||||
void setUrlPrefixOverride(const QString& prefix, const QString& replacement);
|
||||
QString normalizeURL(const QString& urlString);
|
||||
|
|
Loading…
Reference in a new issue