]> granicus.if.org Git - ejabberd/commitdiff
Don't try to load already loaded applications
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Wed, 19 Apr 2017 08:40:58 +0000 (11:40 +0300)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Wed, 19 Apr 2017 08:40:58 +0000 (11:40 +0300)
src/mod_http_upload.erl

index f66b434e4d5568b7b17d872a13ab83d0f074924c..49893f14a7b70bdae19e802ea457591c9e563f0b 100644 (file)
@@ -261,18 +261,6 @@ init([ServerHost, Opts]) ->
                                true),
     DocRoot1 = expand_home(str:strip(DocRoot, right, $/)),
     DocRoot2 = expand_host(DocRoot1, ServerHost),
-    case ServiceURL of
-       undefined ->
-           ok;
-       <<"http://", _/binary>> ->
-           application:start(inets);
-       <<"https://", _/binary>> ->
-           application:start(inets),
-           application:start(crypto),
-           application:start(asn1),
-           application:start(public_key),
-           application:start(ssl)
-    end,
     case DirMode of
        undefined ->
            ok;