summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-02-20 09:28:10 +0100
committerSebastien Helleu <flashcode@flashtux.org>2010-02-20 09:28:10 +0100
commitf4849bc625f77e69563b7189c9442968effebc20 (patch)
tree507948257e1088650927791fece23a50a38886f6
parent555f1827e3d8e4fe350605ab49db5820f8205894 (diff)
downloadweechat-f4849bc625f77e69563b7189c9442968effebc20.zip
Remove connection timer when closing connection with IRC server
-rw-r--r--src/plugins/irc/irc-server.c8
1 files changed, 7 insertions, 1 deletions
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);