From b3876260b98364524b82f91b4b92721b0e22b840 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sat, 11 Jul 2015 17:54:49 +0200
Subject: degesch: make /disconnect abort reconnect timer
---
degesch.c | 5 +++++
1 file changed, 5 insertions(+)
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
--
cgit v1.2.3-70-g09d2