1
0

Update net.cpp

This commit is contained in:
Emagi 2024-07-22 09:35:15 -04:00
parent 5ca6fa7982
commit c5519d020f

View File

@ -149,11 +149,14 @@ int main(int argc, char** argv) {
//remove this when all database calls are using the new database class //remove this when all database calls are using the new database class
if (!database.Init()) { if (!database.Init()) {
LogStop(); LogStop();
LogWrite(INIT__ERROR, 0, "Init", "Database init failed!");
return EXIT_FAILURE; return EXIT_FAILURE;
} }
if (!database.ConnectNewDatabase()) if (!database.ConnectNewDatabase()) {
LogWrite(INIT__ERROR, 0, "Init", "Cannot connect to database!");
return EXIT_FAILURE; return EXIT_FAILURE;
}
#ifdef _DEBUG #ifdef _DEBUG
_CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); _CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);