summaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
Diffstat (limited to 'degesch.c')
-rw-r--r--degesch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/degesch.c b/degesch.c
index 37c0c1d..a6c35ac 100644
--- a/degesch.c
+++ b/degesch.c
@@ -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);