diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-06-11 14:33:32 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-06-11 14:33:32 +0200 |
commit | 8c73634e1be2813ba42a89969ed7757c6ca548ba (patch) | |
tree | 666226db46d8cca886f8431e4a9da3601192bab3 /src/plugins/relay/relay.c | |
parent | fc91ee59c95f77fa6bf8d34ad3e64bc5e570a534 (diff) | |
download | weechat-8c73634e1be2813ba42a89969ed7757c6ca548ba.zip |
relay: fix crash on `/upgrade` when at least a client is connected with weechat protocol
Diffstat (limited to 'src/plugins/relay/relay.c')
-rw-r--r-- | src/plugins/relay/relay.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/plugins/relay/relay.c b/src/plugins/relay/relay.c index b2e07a7b2..9e1c3f6b2 100644 --- a/src/plugins/relay/relay.c +++ b/src/plugins/relay/relay.c @@ -245,22 +245,18 @@ weechat_plugin_end (struct t_weechat_plugin *plugin) relay_config_write (); if (relay_signal_upgrade_received) - { relay_upgrade_save (0); - } else - { - relay_raw_message_free_all (); + relay_client_disconnect_all (); - relay_server_free_all (); + relay_raw_message_free_all (); - relay_client_disconnect_all (); + relay_server_free_all (); - if (relay_buffer) - weechat_buffer_close (relay_buffer); + if (relay_buffer) + weechat_buffer_close (relay_buffer); - relay_client_free_all (); - } + relay_client_free_all (); relay_network_end (); |