25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

bug fix: ejabberd:start_app need to pass Type to application:start

This commit is contained in:
wcy123 2015-07-30 18:57:59 +08:00
parent 8fe930c3d1
commit 3e49bf0e83

View File

@ -79,7 +79,7 @@ is_loaded() ->
start_app(App, Type, StartFlag) when not is_list(App) -> start_app(App, Type, StartFlag) when not is_list(App) ->
start_app([App], Type, StartFlag); start_app([App], Type, StartFlag);
start_app([App|Apps], Type, StartFlag) -> start_app([App|Apps], Type, StartFlag) ->
case application:start(App) of case application:start(App,Type) of
ok -> ok ->
spawn(fun() -> check_app_modules(App, StartFlag) end), spawn(fun() -> check_app_modules(App, StartFlag) end),
start_app(Apps, Type, StartFlag); start_app(Apps, Type, StartFlag);