Update net.cpp
This commit is contained in:
parent
5ca6fa7982
commit
c5519d020f
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user