mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +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;
|
||||
|
||||
AccountManager& AccountManager::getInstance(bool forceReset) {
|
||||
static auto sharedInstance = std::make_shared<AccountManager>();
|
||||
static std::unique_ptr<AccountManager> sharedInstance(new AccountManager());
|
||||
|
||||
if (forceReset) {
|
||||
sharedInstance = std::make_shared<AccountManager>();
|
||||
sharedInstance.reset(new AccountManager());
|
||||
}
|
||||
|
||||
return *sharedInstance;
|
||||
|
|
Loading…
Reference in a new issue