forked from premiere/premiere-libtorrent
fix bug in disk thread and torrent abort functions
This commit is contained in:
parent
7e3ccba939
commit
f3a7d567a4
|
@ -374,7 +374,7 @@ namespace libtorrent
|
|||
m_queue_buffer_size -= i->buffer_size;
|
||||
}
|
||||
post_callback(i->callback, *i, -3);
|
||||
m_jobs.erase(i++);
|
||||
i = m_jobs.erase(i);
|
||||
continue;
|
||||
}
|
||||
++i;
|
||||
|
@ -1878,7 +1878,7 @@ namespace libtorrent
|
|||
m_queue_buffer_size -= i->buffer_size;
|
||||
}
|
||||
post_callback(i->callback, *i, -3);
|
||||
m_jobs.erase(i++);
|
||||
i = m_jobs.erase(i);
|
||||
continue;
|
||||
}
|
||||
++i;
|
||||
|
@ -1940,7 +1940,7 @@ namespace libtorrent
|
|||
m_queue_buffer_size -= i->buffer_size;
|
||||
}
|
||||
post_callback(i->callback, *i, -3);
|
||||
m_jobs.erase(i++);
|
||||
i = m_jobs.erase(i);
|
||||
continue;
|
||||
}
|
||||
++i;
|
||||
|
|
Loading…
Reference in New Issue