summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/dcc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/dcc.c b/src/common/dcc.c
index 055098b2..954e6b91 100644
--- a/src/common/dcc.c
+++ b/src/common/dcc.c
@@ -2147,7 +2147,8 @@ update_is_resumable (struct DCC *dcc)
 		{
 			d = list->data;
 			if (d->type == TYPE_RECV && d->dccstat != STAT_ABORTED &&
-				 d->dccstat != STAT_DONE && d->dccstat != STAT_FAILED)
+				 d->dccstat != STAT_DONE && d->dccstat != STAT_FAILED &&
+				 d->dccstat != STAT_QUEUED)
 			{
 				if (d != dcc && is_same_file (d, dcc))
 				{
@@ -2341,6 +2342,8 @@ dcc_resume (struct DCC *dcc)
 {
 	char tbuf[500];
 
+	update_is_resumable (dcc);
+
 	if (dcc->dccstat == STAT_QUEUED && dcc->resumable)
 	{
 		dcc->resume_sent = 1;