degesch: /connect restarts if already connecting
This commit is contained in:
parent
5b9e263ca7
commit
0df9892391
|
@ -4773,6 +4773,8 @@ handle_command_connect (struct app_context *ctx, char *arguments)
|
||||||
buffer_send_error (ctx, s->buffer, "Already connected");
|
buffer_send_error (ctx, s->buffer, "Already connected");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (s->state == IRC_CONNECTING)
|
||||||
|
irc_destroy_connector (s);
|
||||||
|
|
||||||
irc_cancel_timers (s);
|
irc_cancel_timers (s);
|
||||||
irc_initiate_connect (s);
|
irc_initiate_connect (s);
|
||||||
|
|
Loading…
Reference in New Issue