Set the start_id while aborting. This allow to resume from this block

This commit is contained in:
Olivier Goffart 2013-10-03 11:39:36 +02:00
parent 8f1e318cde
commit b24f894a32

View File

@ -441,6 +441,7 @@ Hbf_State hbf_transfer( ne_session *session, hbf_transfer_t *transfer, const cha
int do_abort = (transfer->abort_cb)();
if( do_abort ) {
state = HBF_USER_ABORTED;
transfer->start_id = block_id % transfer->block_cnt;
}
}