diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-05-09 23:14:07 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-05-09 23:14:07 +0200 |
commit | 0df989239106321a22da976309cba9e845f9b37c (patch) | |
tree | c65676abba72dc44d93ae5310d1d223b9b02b3d0 /degesch.c | |
parent | 5b9e263ca7de0de470ebd1f0ccb7c8b05da788d7 (diff) | |
download | xK-0df989239106321a22da976309cba9e845f9b37c.tar.gz xK-0df989239106321a22da976309cba9e845f9b37c.tar.xz xK-0df989239106321a22da976309cba9e845f9b37c.zip |
degesch: /connect restarts if already connecting
Diffstat (limited to 'degesch.c')
-rw-r--r-- | degesch.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |