fix(schedule): remove unreachable init guard

This commit is contained in:
Tianyi Cui
2026-08-09 00:00:09 +08:00
parent 75f550c5c8
commit 35b98fc251

View File

@@ -1112,7 +1112,7 @@ export class PersistenceCoordinator<TornMarker = unknown> {
const live = this.createLiveState(session)
if (suffix.length > 0) {
const init = this.serialize(session.id, () => this.appendCore(session.id, suffix)).catch((error: unknown) => {
if (live.init === init) live.init = undefined
live.init = undefined
throw error
})
live.init = init