diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-07-11 17:54:49 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-07-11 17:54:49 +0200 |
commit | b3876260b98364524b82f91b4b92721b0e22b840 (patch) | |
tree | d2f94d326d8323ef59cb4e57fe47609eb8576e61 | |
parent | 0c4b727961ed144c69268a5a325d2472652f3f0d (diff) | |
download | xK-b3876260b98364524b82f91b4b92721b0e22b840.tar.gz xK-b3876260b98364524b82f91b4b92721b0e22b840.tar.xz xK-b3876260b98364524b82f91b4b92721b0e22b840.zip |
degesch: make /disconnect abort reconnect timer
-rw-r--r-- | degesch.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -7374,6 +7374,11 @@ handle_command_disconnect (struct handler_args *a) log_server_status (s, s->buffer, "Connecting aborted"); irc_destroy_connector (s); } + else if (poller_timer_is_active (&s->reconnect_tmr)) + { + log_server_status (s, s->buffer, "Connecting aborted"); + poller_timer_reset (&s->reconnect_tmr); + } else if (!irc_is_connected (s)) log_server_error (s, s->buffer, "Not connected"); else |