mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:35:08 +02:00
Prevent type conversion in ~ResourceManager constant
This commit is contained in:
parent
9dc03f5013
commit
e4377a6c95
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ ResourceManager::ResourceManager(bool atpSupportEnabled) : _atpSupportEnabled(at
|
|||
ResourceManager::~ResourceManager() {
|
||||
if (_thread.isRunning()) {
|
||||
_thread.quit();
|
||||
static const auto MAX_RESOURCE_MANAGER_THREAD_QUITTING_TIME = 0.5 * MSECS_PER_SECOND;
|
||||
static const auto MAX_RESOURCE_MANAGER_THREAD_QUITTING_TIME = MSECS_PER_SECOND / 2;
|
||||
if (!_thread.wait(MAX_RESOURCE_MANAGER_THREAD_QUITTING_TIME)) {
|
||||
_thread.terminate();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue