summaryrefslogtreecommitdiff
path: root/irc/xchat1/files/patch-autoresume
blob: fa01aaddf0881e6c26128b8d37bcc574ce6f4acb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- src/common/dcc.c.orig	Fri Oct 12 08:13:04 2001
+++ src/common/dcc.c	Sat Nov 24 16:47:39 2001
@@ -1292,8 +1292,12 @@
 					while (list)
 					{
 						d = list->data;
-						if (d != dcc && strcmp (d->destfile, dcc->destfile) == 0)
-							goto dontresume;
+						if (d->type == TYPE_RECV && d->dccstat != STAT_ABORTED &&
+							 d->dccstat != STAT_DONE && d->dccstat != STAT_FAILED)
+						{
+							if (d != dcc && strcmp (d->destfile, dcc->destfile) == 0)
+								goto dontresume;
+						}
 						list = list->next;
 					}
 					dcc_resume (dcc);