Some checks failed
build / build (push) Has been cancelled
Reviewer-flagged: v0.4.18 only checked epoch BEFORE Files.move. The window between the move completing and READY.put / "완료" chat was still racy — if /videoCache clear landed in that window, clearAll would epoch++ + clear READY + delete files on disk, then the download thread would do READY.put(url, finalPath) anyway, resurrecting a cleared entry and emitting a stale "완료" message. Add a second epoch check immediately AFTER Files.move(): if the epoch changed, delete finalPath and return without publishing. The pre-move check is kept too — it lets the common cancel-during-read case skip the wasted move/delete round-trip.
457 B
457 B