summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/core/irc-servers-reconnect.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/irc/core/irc-servers-reconnect.c b/src/irc/core/irc-servers-reconnect.c
index 1c6865de..07b39b88 100644
--- a/src/irc/core/irc-servers-reconnect.c
+++ b/src/irc/core/irc-servers-reconnect.c
@@ -52,7 +52,8 @@ static void sig_server_connect_copy(SERVER_CONNECT_REC **dest,
static void sig_server_reconnect_save_status(IRC_SERVER_CONNECT_REC *conn,
IRC_SERVER_REC *server)
{
- if (!IS_IRC_SERVER_CONNECT(conn) || !IS_IRC_SERVER(server))
+ if (!IS_IRC_SERVER_CONNECT(conn) || !IS_IRC_SERVER(server) ||
+ !server->connected)
return;
g_free_not_null(conn->channels);