fix: cancel persist timer on dispose to prevent post-dispose writes
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user