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
This commit is contained in:
Timo Sirainen 2002-01-20 02:18:37 +00:00 committed by cras
commit d6abc84ab5
3 changed files with 7 additions and 2 deletions

View file

@ -128,8 +128,9 @@ static void dcc_send_connected(SEND_DCC_REC *dcc)
that the host of the nick who we sent the request matches the
address who connected us. */
g_source_remove(dcc->tagconn);
net_disconnect(dcc->handle);
g_source_remove(dcc->tagconn);
dcc->tagconn = -1;
dcc->starttime = time(NULL);
dcc->handle = handle;