summaryrefslogtreecommitdiff
path: root/src/plugins/relay/relay.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/relay/relay.c')
-rw-r--r--src/plugins/relay/relay.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/relay/relay.c b/src/plugins/relay/relay.c
index 6fa4a19d6..062866588 100644
--- a/src/plugins/relay/relay.c
+++ b/src/plugins/relay/relay.c
@@ -79,6 +79,8 @@ int
relay_signal_upgrade_cb (void *data, const char *signal, const char *type_data,
void *signal_data)
{
+ struct t_relay_server *ptr_server;
+
/* make C compiler happy */
(void) data;
(void) signal;
@@ -87,6 +89,12 @@ relay_signal_upgrade_cb (void *data, const char *signal, const char *type_data,
relay_signal_upgrade_received = 1;
+ for (ptr_server = relay_servers; ptr_server;
+ ptr_server = ptr_server->next_server)
+ {
+ relay_server_close_socket (ptr_server);
+ }
+
return WEECHAT_RC_OK;
}