mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-19 20:21:46 +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() {
|
ResourceManager::~ResourceManager() {
|
||||||
if (_thread.isRunning()) {
|
if (_thread.isRunning()) {
|
||||||
_thread.quit();
|
_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)) {
|
if (!_thread.wait(MAX_RESOURCE_MANAGER_THREAD_QUITTING_TIME)) {
|
||||||
_thread.terminate();
|
_thread.terminate();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue