From 1ee63657acfa9a7ae7ec9f7e700fede0557b258f Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 2 Nov 2015 23:46:58 +0100 Subject: [PATCH] mod_http_upload: Don't complain during shutdown Ignore the case where, for some reason, no process is found to be stopped. Closes #810. --- mod_http_upload/src/mod_http_upload.erl | 4 ++-- mod_http_upload/src/mod_http_upload_quota.erl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mod_http_upload/src/mod_http_upload.erl b/mod_http_upload/src/mod_http_upload.erl index 4b4c370..3d54ca3 100644 --- a/mod_http_upload/src/mod_http_upload.erl +++ b/mod_http_upload/src/mod_http_upload.erl @@ -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()]. diff --git a/mod_http_upload/src/mod_http_upload_quota.erl b/mod_http_upload/src/mod_http_upload_quota.erl index 1b7828a..6ff8c84 100644 --- a/mod_http_upload/src/mod_http_upload_quota.erl +++ b/mod_http_upload/src/mod_http_upload_quota.erl @@ -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()].