mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Disable awkward trap_exit flag
This commit is contained in:
parent
bdedcf8d8a
commit
675c428f21
@ -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"),
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user