25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

Disable awkward trap_exit flag

This commit is contained in:
Evgeniy Khramtsov 2015-04-08 14:40:28 +03:00
parent bdedcf8d8a
commit 675c428f21
2 changed files with 0 additions and 2 deletions

View File

@ -498,7 +498,6 @@ odbc_connect(SQLServer) ->
%% Open a database connection to SQLite
sqlite_connect(DB) ->
process_flag(trap_exit, true),
case sqlite3:open(?SQLITE_DB, [{file, binary_to_list(DB)}]) of
{ok, Ref} ->
sqlite3:sql_exec(?SQLITE_DB, "pragma foreign_keys = on"),

View File

@ -135,7 +135,6 @@ transform_options(Opt, Opts) ->
[Opt|Opts].
check_sqlite_db(DB) ->
process_flag(trap_exit, true),
Ret = case sqlite3:open(?SQLITE_DB, [{file, binary_to_list(DB)}]) of
{ok, _Ref} -> ok;
{error, {already_started, _Ref}} -> ok;