mirror of
https://github.com/weechat/weechat.git
synced 2026-07-01 07:16:37 +02:00
irc: fix cancel of auto-reconnection to server with /disconnect
This bug was introduced by commit 5931eed85d
This commit is contained in:
@@ -151,7 +151,8 @@ irc_buffer_close_cb (void *data, struct t_gui_buffer *buffer)
|
||||
weechat_buffer_close (ptr_channel->buffer);
|
||||
ptr_channel = next_channel;
|
||||
}
|
||||
irc_server_disconnect (ptr_server, 0, 0);
|
||||
if (!ptr_server->disconnected)
|
||||
irc_server_disconnect (ptr_server, 0, 0);
|
||||
ptr_server->buffer = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3915,10 +3915,6 @@ irc_server_disconnect (struct t_irc_server *server, int switch_address,
|
||||
{
|
||||
struct t_irc_channel *ptr_channel;
|
||||
|
||||
/* server already disconnected? */
|
||||
if (server->disconnected)
|
||||
return;
|
||||
|
||||
if (server->is_connected)
|
||||
{
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user