fix: cancel persist timer on dispose to prevent post-dispose writes

This commit is contained in:
zjs81 committed 2026-03-14 17:39:01 -07:00
1 parent b336aedbc5
commit fffcff3b74
1 file changed
+6
@@ -213,6 +213,12 @@ class TimeoutPredictionService extends ChangeNotifier {
}
}
@override
void dispose() {
_persistTimer?.cancel();
super.dispose();
}
void _rebuildContactStats() {
_contactStats.clear();
for (final obs in _observations) {