now winix waites for the database to be ready (when the operating system starts)
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@638 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -131,6 +131,9 @@ return true;
|
||||
|
||||
bool App::Init()
|
||||
{
|
||||
db.Init(config.db_database, config.db_user, config.db_pass);
|
||||
db.WaitForConnection();
|
||||
|
||||
if( !CreateFCGISocket() )
|
||||
return false;
|
||||
|
||||
@@ -149,9 +152,10 @@ bool App::Init()
|
||||
templates.ReadTemplates();
|
||||
templates.CreateFunctions();
|
||||
|
||||
|
||||
session_manager.LoadSessions();
|
||||
|
||||
plugin.Call(WINIX_PLUGIN_INIT);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user