mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 03:39:52 +00:00
Review follow-up. The check used fixed 300/700 ms pauses, so on a loaded host a late stale read could arrive after an assertion, or the newer read could finish before the busy-state check. The injected reader now blocks until the check releases that file, and the check waits on InspectionModel.finishedReads, which counts every finished read whether it was published or discarded. A five-second deadline bounds the wait without deciding the order. Signed-off-by: maridogolpeador <354308468+maridogolpeador@users.noreply.github.com>