aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-05-09 23:14:07 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-05-09 23:14:07 +0200
commit0df989239106321a22da976309cba9e845f9b37c (patch)
treec65676abba72dc44d93ae5310d1d223b9b02b3d0
parent5b9e263ca7de0de470ebd1f0ccb7c8b05da788d7 (diff)
downloadxK-0df989239106321a22da976309cba9e845f9b37c.tar.gz
xK-0df989239106321a22da976309cba9e845f9b37c.tar.xz
xK-0df989239106321a22da976309cba9e845f9b37c.zip
degesch: /connect restarts if already connecting
-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);