mirror of
https://github.com/oatpp/oatpp.git
synced 2025-02-11 17:20:52 +08:00
Fix virtual_::Pipe::Reader::WaitListListener
This commit is contained in:
parent
90cf16181a
commit
744d8e03fa
@ -64,7 +64,7 @@ public:
|
||||
|
||||
void onNewItem(oatpp::async::CoroutineWaitList& list) override {
|
||||
std::lock_guard<std::mutex> lock(m_pipe->m_mutex);
|
||||
if (m_pipe->m_fifo.availableToRead() > 0) {
|
||||
if (m_pipe->m_fifo.availableToRead() > 0 || !m_pipe->m_open) {
|
||||
list.notifyAllAndClear();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user