degesch: /connect restarts if already connecting

This commit is contained in:
Přemysl Eric Janouch 2015-05-09 23:14:07 +02:00
parent 5b9e263ca7
commit 0df9892391

View File

@ -4773,6 +4773,8 @@ handle_command_connect (struct app_context *ctx, char *arguments)
buffer_send_error (ctx, s->buffer, "Already connected");
return true;
}
if (s->state == IRC_CONNECTING)
irc_destroy_connector (s);
irc_cancel_timers (s);
irc_initiate_connect (s);