dcc: Fix resuming with DCC GET

Fixes #1746
Closes #1747
This commit is contained in:
Hubert Terlecki 2016-06-15 15:45:50 +02:00 committed by Patrick Griffis
parent 0667519d17
commit 77dccacd02
1 changed files with 11 additions and 4 deletions

View File

@ -2212,10 +2212,17 @@ dcc_get_nick (struct session *sess, char *nick)
{ {
if (dcc->dccstat == STAT_QUEUED && dcc->type == TYPE_RECV) if (dcc->dccstat == STAT_QUEUED && dcc->type == TYPE_RECV)
{ {
dcc->resumable = 0; update_is_resumable (dcc);
dcc->pos = 0; if (prefs.hex_dcc_auto_resume && dcc->resumable)
dcc->ack = 0; {
dcc_connect (dcc); dcc_resume (dcc);
}
else
{
dcc->pos = 0;
dcc->ack = 0;
dcc_connect (dcc);
}
return; return;
} }
} }