From 0df989239106321a22da976309cba9e845f9b37c Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sat, 9 May 2015 23:14:07 +0200
Subject: degesch: /connect restarts if already connecting
---
degesch.c | 2 ++
1 file changed, 2 insertions(+)
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);
--
cgit v1.2.3-70-g09d2