Setting to disable autostart of connections to Postgres servers.
git-svn-id: http://voip.null.ro/svn/yate@3005 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
60e7a81dd0
commit
0622a2379f
|
@ -10,6 +10,9 @@
|
|||
;[default]
|
||||
; The section name is used as the database connection name
|
||||
|
||||
; autostart: bool: Automatically initiate the connection on startup
|
||||
;autostart=yes
|
||||
|
||||
; timeout: int: Query timeout in milliseconds
|
||||
;timeout=10000
|
||||
|
||||
|
|
|
@ -392,6 +392,7 @@ void PgModule::initialize()
|
|||
if (!sec || (*sec == "general"))
|
||||
continue;
|
||||
PgConn* conn = new PgConn(sec);
|
||||
if (sec->getBoolValue("autostart",true))
|
||||
conn->initDb();
|
||||
s_conns.insert(conn);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue