Destroying database specifier

This commit is contained in:
EmosewaMC
2022-04-09 15:35:01 -07:00
parent fd13770e87
commit 3e60b9db4a
4 changed files with 8 additions and 7 deletions

View File

@@ -57,7 +57,7 @@ int main(int argc, char** argv) {
Database::Connect(mysql_host, mysql_database, mysql_username, mysql_password);
} catch (sql::SQLException& ex) {
Game::logger->Log("AuthServer", "Got an error while connecting to the database: %s\n", ex.what());
Database::Destroy();
Database::Destroy("AuthServer");
delete Game::server;
delete Game::logger;
return 0;
@@ -143,7 +143,7 @@ int main(int argc, char** argv) {
}
//Delete our objects here:
Database::Destroy();
Database::Destroy("AuthServer");
delete Game::server;
delete Game::logger;