mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-23 09:04:47 +00:00
fix(state): delete key from recordsByKey on instance disposal (#8252)
This commit is contained in:
@@ -58,6 +58,7 @@ export namespace State {
|
|||||||
tasks.push(task)
|
tasks.push(task)
|
||||||
}
|
}
|
||||||
entries.clear()
|
entries.clear()
|
||||||
|
recordsByKey.delete(key)
|
||||||
await Promise.all(tasks)
|
await Promise.all(tasks)
|
||||||
disposalFinished = true
|
disposalFinished = true
|
||||||
log.info("state disposal completed", { key })
|
log.info("state disposal completed", { key })
|
||||||
|
|||||||
Reference in New Issue
Block a user