mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-24 20:07:40 +02:00
fixed queue::abort
This commit is contained in:
parent
e875555d3c
commit
06ce37be1c
3 changed files with 23 additions and 19 deletions
|
@ -88,8 +88,7 @@ bool Stream::waitForChunk(size_t ms) const
|
|||
return true;
|
||||
|
||||
std::unique_lock<std::mutex> lck(cvMutex_);
|
||||
cv_.wait_for(lck, std::chrono::milliseconds(ms));
|
||||
return !chunks_.empty();
|
||||
return (cv_.wait_for(lck, std::chrono::milliseconds(ms), [this] { return !chunks_.empty(); }));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue