Fix race introduced by ffdaff374 on ejabberd_mnesia init

This commit is contained in:
Christophe Romain 2017-09-28 15:14:11 +02:00
parent 3f015c829c
commit a3da27e917
1 changed files with 2 additions and 0 deletions

View File

@ -68,6 +68,8 @@ init([]) ->
_ -> ok
end,
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(),
{ok, #state{schema = Schema}};
false ->