aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-07-11 17:54:49 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-07-11 17:54:49 +0200
commitb3876260b98364524b82f91b4b92721b0e22b840 (patch)
treed2f94d326d8323ef59cb4e57fe47609eb8576e61
parent0c4b727961ed144c69268a5a325d2472652f3f0d (diff)
downloadxK-b3876260b98364524b82f91b4b92721b0e22b840.tar.gz
xK-b3876260b98364524b82f91b4b92721b0e22b840.tar.xz
xK-b3876260b98364524b82f91b4b92721b0e22b840.zip
degesch: make /disconnect abort reconnect timer
-rw-r--r--degesch.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/degesch.c b/degesch.c
index 951a9ad..711b970 100644
--- a/degesch.c
+++ b/degesch.c
@@ -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