提交 ad11b061 authored 作者: Leon de Rooij's avatar Leon de Rooij

quick fix crashing at reloadxml, have to destroy/re-connect if dsn changes on reload


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk/contrib@14855 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 efd5a71d
......@@ -135,6 +135,7 @@ static switch_status_t do_config(switch_bool_t reload)
}
/* make odbc connection */
if (!reload) {
if (switch_odbc_available() && globals.odbc_dsn) {
if (!(globals.odbc_handle = switch_odbc_handle_new(globals.odbc_dsn, odbc_user, odbc_pass))) {
......@@ -149,6 +150,7 @@ static switch_status_t do_config(switch_bool_t reload)
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Connected ODBC DSN: [%s]\n", globals.odbc_dsn);
}
}
status = SWITCH_STATUS_SUCCESS;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论