Fix ThreadedFileEventDriver event cancellation when not waiting.
This commit is contained in:
parent
de96942501
commit
4e3edf5292
|
@ -133,6 +133,7 @@ final class ThreadedFileEventDriver(Events : EventDriverEvents) : EventDriverFil
|
|||
|
||||
if (m_readyEvent != EventID.invalid) {
|
||||
log("finishing file events");
|
||||
if (m_waiting)
|
||||
m_events.cancelWait(m_readyEvent, &onReady);
|
||||
onReady(m_readyEvent);
|
||||
m_events.releaseRef(m_readyEvent);
|
||||
|
|
Loading…
Reference in a new issue