fixed disk I/O iterator bug

This commit is contained in:
Arvid Norberg 2010-04-14 22:02:49 +00:00
parent 2a55fe8c70
commit 225232906a
1 changed files with 2 additions and 0 deletions

View File

@ -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++);
}