This commit is contained in:
@ -147,9 +147,6 @@ auto ring_buffer_base::download_chunk(std::size_t chunk,
|
|||||||
chunk_lock.lock();
|
chunk_lock.lock();
|
||||||
if (chunk < ring_begin_ || chunk > ring_end_) {
|
if (chunk < ring_begin_ || chunk > ring_end_) {
|
||||||
result = api_error::invalid_ring_buffer_position;
|
result = api_error::invalid_ring_buffer_position;
|
||||||
unlock_and_notify();
|
|
||||||
active_download->notify(result);
|
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result == api_error::success) {
|
if (result == api_error::success) {
|
||||||
|
Reference in New Issue
Block a user