Persist comment cache during teardown

This commit is contained in:
thePR0M3TH3AN committed 2025-12-12 10:40:48 -05:00
1 parent 5c5cd7b60c
commit dacf5557bb
1 file changed
+8
+8
View File
@@ -947,6 +947,14 @@ export default class CommentThreadService {
}
teardown() {
try {
this.persistCommentCache();
} catch (error) {
if (this.logger?.warn) {
this.logger.warn("[commentThread] Failed to persist comment cache:", error);
}
}
if (this.subscriptionCleanup) {
try {
this.subscriptionCleanup();