FileStoreManager: Fix incorrect check

This commit is contained in:
Phillip Stephens 2022-02-27 18:02:33 -08:00
parent 3f34a2d3ea
commit aa1d6006ed
Signed by: Antidote
GPG Key ID: F8BEE4C83DACA60D
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ FileStoreManager* g_instance = nullptr;
}
FileStoreManager::FileStoreManager(std::string_view org, std::string_view domain) : m_org(org), m_domain(domain) {
if (g_instance == this) {
if (g_instance != nullptr) {
Log.report(logvisor::Fatal, FMT_STRING("Attempting to build another FileStoreManager!!"));
return;
}