summaryrefslogtreecommitdiff
path: root/src/irc/dcc/dcc-get.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-01-20 02:18:37 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-01-20 02:18:37 +0000
commitd6abc84ab5e3f7653f657e9b5fb22230a0b8db4d (patch)
treebc9607feebf8e5fbee02e4480f289c41e5ba949f /src/irc/dcc/dcc-get.c
parent59e32a18c9fb50058e588693907ad7b02a7b9daf (diff)
downloadirssi-d6abc84ab5e3f7653f657e9b5fb22230a0b8db4d.zip
Connection tag variable wasn't deinitialized, so when destroying a DCC
record it might have stopped a wrong timeout/io func (or probably not, because new source func was allocated soon after, and it'd have the same tag which would just be free'd twice). git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2324 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/dcc/dcc-get.c')
-rw-r--r--src/irc/dcc/dcc-get.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/irc/dcc/dcc-get.c b/src/irc/dcc/dcc-get.c
index b04cab40..52c93483 100644
--- a/src/irc/dcc/dcc-get.c
+++ b/src/irc/dcc/dcc-get.c
@@ -180,6 +180,7 @@ static void sig_dccget_connected(GET_DCC_REC *dcc)
}
g_source_remove(dcc->tagconn);
+ dcc->tagconn = -1;
g_free_not_null(dcc->file);
dcc->file = dcc_get_download_path(dcc->arg);