25
1
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:
Christophe Romain 2017-09-28 15:14:11 +02:00
parent 3f015c829c
commit a3da27e917

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 ->