From 0c794c105f882ded3750c5cd6fa168c3bacc950d Mon Sep 17 00:00:00 2001 From: Badlop Date: Mon, 21 Jan 2019 13:31:13 +0100 Subject: [PATCH] Fix crash when running reload_config and sql_pool_size option is used Fixes #2541 --- src/ejabberd_rdbms.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ejabberd_rdbms.erl b/src/ejabberd_rdbms.erl index bb4011920..c6f5536d7 100644 --- a/src/ejabberd_rdbms.erl +++ b/src/ejabberd_rdbms.erl @@ -99,7 +99,7 @@ stop_host(Host) -> -spec reload_host(binary()) -> ok. reload_host(Host) -> case needs_sql(Host) of - true -> ejabberd_sql_sup:reload(Host); + {true, _} -> ejabberd_sql_sup:reload(Host); false -> ok end. -- 2.40.0