From 4d73c29836b2c74253dbce0df7af4d976440217f Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Tue, 18 Jun 2013 20:37:57 +0200 Subject: Add config_change handlers for the two keepalive options We can now change the keepalive values with /set, without restarting --- src/core.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core.py') diff --git a/src/core.py b/src/core.py index 9476bd42..c330bbde 100644 --- a/src/core.py +++ b/src/core.py @@ -299,6 +299,8 @@ class Core(object): self.add_configuration_handler("create_gaps", self.on_gaps_config_change) self.add_configuration_handler("plugins_dir", self.on_plugins_dir_config_change) self.add_configuration_handler("plugins_conf_dir", self.on_plugins_conf_dir_config_change) + self.add_configuration_handler("connection_timeout_delay", self.xmpp.set_keepalive_values) + self.add_configuration_handler("connection_check_interval", self.xmpp.set_keepalive_values) self.add_configuration_handler("", self.on_any_config_change) def on_any_config_change(self, option, value): -- cgit v1.2.3