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:
parent
9cd4e405c8
commit
1ee63657ac
|
@ -148,8 +148,8 @@ stop(ServerHost) ->
|
||||||
false -> ok
|
false -> ok
|
||||||
end,
|
end,
|
||||||
Proc = get_proc_name(ServerHost, ?PROCNAME),
|
Proc = get_proc_name(ServerHost, ?PROCNAME),
|
||||||
ok = supervisor:terminate_child(ejabberd_sup, Proc),
|
supervisor:terminate_child(ejabberd_sup, Proc),
|
||||||
ok = supervisor:delete_child(ejabberd_sup, Proc).
|
supervisor:delete_child(ejabberd_sup, Proc).
|
||||||
|
|
||||||
-spec mod_opt_type(atom()) -> fun((term()) -> term()) | [atom()].
|
-spec mod_opt_type(atom()) -> fun((term()) -> term()) | [atom()].
|
||||||
|
|
||||||
|
|
|
@ -75,8 +75,8 @@ start(ServerHost, Opts) ->
|
||||||
|
|
||||||
stop(ServerHost) ->
|
stop(ServerHost) ->
|
||||||
Proc = mod_http_upload:get_proc_name(ServerHost, ?PROCNAME),
|
Proc = mod_http_upload:get_proc_name(ServerHost, ?PROCNAME),
|
||||||
ok = supervisor:terminate_child(ejabberd_sup, Proc),
|
supervisor:terminate_child(ejabberd_sup, Proc),
|
||||||
ok = supervisor:delete_child(ejabberd_sup, Proc).
|
supervisor:delete_child(ejabberd_sup, Proc).
|
||||||
|
|
||||||
-spec mod_opt_type(atom()) -> fun((term()) -> term()) | [atom()].
|
-spec mod_opt_type(atom()) -> fun((term()) -> term()) | [atom()].
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue