1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 07:16:37 +02:00

relay: fix crash on /upgrade when at least a client is connected with weechat protocol

This commit is contained in:
Sébastien Helleu
2023-06-11 14:33:32 +02:00
parent fc91ee59c9
commit 8c73634e1b
2 changed files with 8 additions and 11 deletions
+1
View File
@@ -111,6 +111,7 @@ Bug fixes::
* irc: remove extra space in CTCP ACTION message sent without arguments
* logger: fix display of multiline messages in backlog (issue #1926)
* lua: fix crash with print when the value to print is not a string (issue #1904, issue #1905)
* relay: fix crash on `/upgrade` when at least a client is connected with weechat protocol
* relay: fix connection with IRC clients sending "CAP REQ :" (without capability) and not sending "CAP END" (issue #1040)
* ruby: fix crash on quit when a child process is still running (issue #1889, issue #1915)
* ruby: fix crash in display of exception backtrace with Ruby 3 (issue #1631, issue #1886)
+7 -11
View File
@@ -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_server_free_all ();
relay_client_disconnect_all ();
if (relay_buffer)
weechat_buffer_close (relay_buffer);
relay_raw_message_free_all ();
relay_client_free_all ();
}
relay_server_free_all ();
if (relay_buffer)
weechat_buffer_close (relay_buffer);
relay_client_free_all ();
relay_network_end ();