mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-30 09:22:24 +00:00
Persist comment cache during teardown
This commit is contained in:
1 parent
5c5cd7b60c
commit
dacf5557bb
1 file changed
+8
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user