mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
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
This commit is contained in:
parent
66b0ffe057
commit
5347d24e61
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user