From f4849bc625f77e69563b7189c9442968effebc20 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 20 Feb 2010 09:28:10 +0100 Subject: Remove connection timer when closing connection with IRC server --- src/plugins/irc/irc-server.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c index db86dd6e5..6fa19ab9a 100644 --- a/src/plugins/irc/irc-server.c +++ b/src/plugins/irc/irc-server.c @@ -1902,7 +1902,13 @@ void irc_server_close_connection (struct t_irc_server *server) { int i; - + + if (server->hook_timer_connection) + { + weechat_unhook (server->hook_timer_connection); + server->hook_timer_connection = NULL; + } + if (server->hook_timer_sasl) { weechat_unhook (server->hook_timer_sasl); -- cgit v1.2.3