Skip to content

Commit

Permalink
fix(core-clp): Resolve lost wake-up issue in NetworkReader after a …
Browse files Browse the repository at this point in the history
…download is aborted. (#663)
  • Loading branch information
LinZhihao-723 authored Jan 14, 2025
1 parent 57bc265 commit 1ecd9c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/core/src/clp/NetworkReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,10 @@ auto NetworkReader::acquire_empty_buffer() -> void {
}
std::unique_lock<std::mutex> buffer_resource_lock{m_buffer_resource_mutex};
while (m_filled_buffer_queue.size() == m_buffer_pool_size) {
m_downloader_cv.wait(buffer_resource_lock);
if (is_abort_download_requested()) {
return;
}
m_downloader_cv.wait(buffer_resource_lock);
}
m_curr_downloader_buf.emplace(
m_buffer_pool.at(m_curr_downloader_buf_idx).data(),
Expand Down

0 comments on commit 1ecd9c7

Please sign in to comment.