forked from premiere/premiere-libtorrent
fixed disk I/O iterator bug
This commit is contained in:
parent
2a55fe8c70
commit
225232906a
|
@ -1730,6 +1730,7 @@ namespace libtorrent
|
|||
continue;
|
||||
}
|
||||
post_callback(i->second.callback, i->second, -3);
|
||||
if (elevator_job_pos == i) ++elevator_job_pos;
|
||||
sorted_read_jobs.erase(i++);
|
||||
}
|
||||
jl.unlock();
|
||||
|
@ -1788,6 +1789,7 @@ namespace libtorrent
|
|||
continue;
|
||||
}
|
||||
post_callback(i->second.callback, i->second, -3);
|
||||
if (elevator_job_pos == i) ++elevator_job_pos;
|
||||
sorted_read_jobs.erase(i++);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue