aboutsummaryrefslogtreecommitdiff
path: root/src/mod_stream_mgmt.erl
diff options
context:
space:
mode:
authorEvgeny Khramtsov <ekhramtsov@process-one.net>2018-11-30 18:12:27 +0300
committerEvgeny Khramtsov <ekhramtsov@process-one.net>2018-11-30 18:12:27 +0300
commit59ce0ba6c86f1d11c0ef214d088a50427c71c772 (patch)
tree2ed97d42efc54781377263ec9d18b0b297c8814b /src/mod_stream_mgmt.erl
parentKeep last handled stanzas number in cache rather than session table (diff)
Apply new cache options on mod_stream_mgmt reload
Diffstat (limited to 'src/mod_stream_mgmt.erl')
-rw-r--r--src/mod_stream_mgmt.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mod_stream_mgmt.erl b/src/mod_stream_mgmt.erl
index 546c45a69..5adeaf8c2 100644
--- a/src/mod_stream_mgmt.erl
+++ b/src/mod_stream_mgmt.erl
@@ -97,7 +97,8 @@ stop(Host) ->
ejabberd_hooks:delete(c2s_closed, Host, ?MODULE, c2s_closed, 50),
ejabberd_hooks:delete(c2s_terminated, Host, ?MODULE, c2s_terminated, 50).
-reload(_Host, _NewOpts, _OldOpts) ->
+reload(_Host, NewOpts, _OldOpts) ->
+ init_cache(NewOpts),
?WARNING_MSG("module ~s is reloaded, but new configuration will take "
"effect for newly created client connections only", [?MODULE]).