mod_http_upload: Don't complain during shutdown

Ignore the case where, for some reason, no process is found to be
stopped.

Closes #810.
This commit is contained in:
Holger Weiss 2015-11-02 23:46:58 +01:00
parent 1b368a86b7
commit 4566325241
2 changed files with 4 additions and 4 deletions

View File

@ -148,8 +148,8 @@ stop(ServerHost) ->
false -> ok
end,
Proc = get_proc_name(ServerHost, ?PROCNAME),
ok = supervisor:terminate_child(ejabberd_sup, Proc),
ok = supervisor:delete_child(ejabberd_sup, Proc).
supervisor:terminate_child(ejabberd_sup, Proc),
supervisor:delete_child(ejabberd_sup, Proc).
-spec mod_opt_type(atom()) -> fun((term()) -> term()) | [atom()].

View File

@ -75,8 +75,8 @@ start(ServerHost, Opts) ->
stop(ServerHost) ->
Proc = mod_http_upload:get_proc_name(ServerHost, ?PROCNAME),
ok = supervisor:terminate_child(ejabberd_sup, Proc),
ok = supervisor:delete_child(ejabberd_sup, Proc).
supervisor:terminate_child(ejabberd_sup, Proc),
supervisor:delete_child(ejabberd_sup, Proc).
-spec mod_opt_type(atom()) -> fun((term()) -> term()) | [atom()].