mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
Fix race introduced by ffdaff374
on ejabberd_mnesia init
This commit is contained in:
parent
3f015c829c
commit
a3da27e917
@ -68,6 +68,8 @@ init([]) ->
|
|||||||
_ -> ok
|
_ -> ok
|
||||||
end,
|
end,
|
||||||
ejabberd:start_app(mnesia, permanent),
|
ejabberd:start_app(mnesia, permanent),
|
||||||
|
?DEBUG("Waiting for Mnesia tables synchronization...", []),
|
||||||
|
mnesia:wait_for_tables(mnesia:system_info(local_tables), infinity),
|
||||||
Schema = read_schema_file(),
|
Schema = read_schema_file(),
|
||||||
{ok, #state{schema = Schema}};
|
{ok, #state{schema = Schema}};
|
||||||
false ->
|
false ->
|
||||||
|
Loading…
Reference in New Issue
Block a user