v0.4.21: extract publishIfNotCancelled, close main download publish race
Some checks failed
build / build (push) Has been cancelled
Some checks failed
build / build (push) Has been cancelled
Reviewer-flagged: v0.4.20 fixed the reindex branch's post-put race, but the main download completion path still did READY.put without a follow-up epoch check. /videoCache clear landing between READY.put and the chat notification could leave a resurrected READY entry pointing at a deleted file, plus a stale "완료" message. Extracted publishIfNotCancelled(url, path, startEpoch) helper that does the full pre-check → put → post-check → rollback dance, and routed both publish sites (reindex branch + download-complete branch) through it. Centralizing this is the structural fix: future publish sites can't forget the post-check.
This commit is contained in:
@@ -5,7 +5,7 @@ org.gradle.configuration-cache=false
|
||||
|
||||
# Mod
|
||||
mod_id=video_player
|
||||
mod_version=0.4.20
|
||||
mod_version=0.4.21
|
||||
maven_group=com.ejclaw.videoplayer
|
||||
archives_base_name=video_player
|
||||
|
||||
|
||||
Reference in New Issue
Block a user