From 3092c09bc96438afb005c6ce11b07309a945ebc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 24 May 2014 08:00:19 +0200 Subject: relay: remove warning on /reload of relay.conf when ports are defined --- src/plugins/relay/relay-config.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/plugins/relay/relay-config.c b/src/plugins/relay/relay-config.c index 0ca6c4fa0..67c5cfaa0 100644 --- a/src/plugins/relay/relay-config.c +++ b/src/plugins/relay/relay-config.c @@ -462,7 +462,10 @@ relay_config_reload (void *data, struct t_config_file *config_file) /* make C compiler happy */ (void) data; - return weechat_config_reload (config_file); + weechat_config_section_free_options (relay_config_section_port); + relay_server_free_all (); + + return weechat_config_reload (config_file); } /* -- cgit v1.2.3