mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 04:37:48 +02:00
Restore AccountManager setup
This commit is contained in:
parent
1c965736e8
commit
640171d5bd
1 changed files with 2 additions and 2 deletions
|
@ -34,10 +34,10 @@
|
||||||
const bool VERBOSE_HTTP_REQUEST_DEBUGGING = false;
|
const bool VERBOSE_HTTP_REQUEST_DEBUGGING = false;
|
||||||
|
|
||||||
AccountManager& AccountManager::getInstance(bool forceReset) {
|
AccountManager& AccountManager::getInstance(bool forceReset) {
|
||||||
static auto sharedInstance = std::make_shared<AccountManager>();
|
static std::unique_ptr<AccountManager> sharedInstance(new AccountManager());
|
||||||
|
|
||||||
if (forceReset) {
|
if (forceReset) {
|
||||||
sharedInstance = std::make_shared<AccountManager>();
|
sharedInstance.reset(new AccountManager());
|
||||||
}
|
}
|
||||||
|
|
||||||
return *sharedInstance;
|
return *sharedInstance;
|
||||||
|
|
Loading…
Reference in a new issue