Fix crash when running reload_config and sql_pool_size option is used

Fixes #2541
This commit is contained in:
Badlop 2019-01-21 13:31:13 +01:00
parent 5e9945f060
commit 0c794c105f
1 changed files with 1 additions and 1 deletions

View File

@ -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.