summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-11-25 15:05:38 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-11-25 15:05:38 +0000
commit5347d24e619d3728393b685cb92f84c5af538f9e (patch)
tree0c68c3e1edd1b0476015abc5cfa01b992d3c82d0 /src/core
parent66b0ffe057d1b9da59959cd6c01825516209d9f9 (diff)
downloadirssi-5347d24e619d3728393b685cb92f84c5af538f9e.zip
Doing /RECONNECT while server was still being connected to, irssi
didn't disconnect the server so you ended up having two connections. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2139 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core')
-rw-r--r--src/core/servers-reconnect.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/servers-reconnect.c b/src/core/servers-reconnect.c
index 6cbac58d..baf047e9 100644
--- a/src/core/servers-reconnect.c
+++ b/src/core/servers-reconnect.c
@@ -357,11 +357,9 @@ static void cmd_reconnect(const char *data, SERVER_REC *server)
/* reconnect back to same server */
conn = server_connect_copy_skeleton(server->connrec, TRUE);
- if (server->connected) {
+ if (server->connected)
reconnect_save_status(conn, server);
- signal_emit("command disconnect", 2,
- "* Reconnecting", server);
- }
+ signal_emit("command disconnect", 2, "* Reconnecting", server);
conn->reconnection = TRUE;
CHAT_PROTOCOL(conn)->server_connect(conn);