Fix failing immersion-tracker tests

This commit is contained in:
2026-02-17 02:30:09 -08:00
parent 78715e801c
commit 804755bd3d
2 changed files with 14 additions and 13 deletions

View File

@@ -210,7 +210,6 @@ export class ImmersionTrackerService {
destroy(): void {
if (this.isDestroyed) return;
this.isDestroyed = true;
if (this.flushTimer) {
clearTimeout(this.flushTimer);
this.flushTimer = null;
@@ -220,6 +219,7 @@ export class ImmersionTrackerService {
this.maintenanceTimer = null;
}
this.finalizeActiveSession();
this.isDestroyed = true;
this.db.close();
}